Subject: CVS commit: pkgsrc/shells/oh-my-posh
From: pin
Date: 2024-11-08 10:07:27
Message id: 20241108090728.060BEFC7E@cvs.NetBSD.org

Log Message:
shells/oh-my-posh: update to 24.1.0

v24.1.0
Bug Fixes
    prompt: reset colors before printing fillers (1adf542)
    segment: add to cache after rendering (ce02759)
    templates: restore resolving logic (84d132e), closes #5848

Features
    segment: add aurelia (5ec18f2)
    zig lang supporting (6402d5d)

v24.0.11
Bug Fixes
    templates: restore templates_logic (af76a9a)

v24.0.10
Bug Fixes
    template: load cache before evaluation starts (86291dc)

v24.0.9
Bug Fixes
    upgrade: restore caching mechanism (63d79fe)

v24.0.8
Bug Fixes
    cli: revert breaking CLI change (466f9e7)
    segment: evaluate all needs (7de2809)

v24.0.7
Bug Fixes
    cli: correct help text (472bd6f)
    template: add missing .PSWD (0a5e1f6)

v24.0.6
Bug Fixes
    prompt: render segments when everything is executed (da6c925), closes #5816

v24.0.5
Bug Fixes
    prompt: render segments when everything is executed (da6c925), closes #5816

v24.0.4
Bug Fixes
    block: do not print newline when empty (014dc08)
    notice: validate correct keyword (c457f23)
    segment: ignore empty colors (225f6c6)

v24.0.3
Bug Fixes
    init: use positional parameter (075eaca), closes #5804

v24.0.2
Bug Fixes
    build: reintroduce 386 builds (a54041e)

v24.0.1
Bug Fixes
    image: initialize image correctly (0b76bea)

v24.0.0
Features
Auto upgrade

oh-my-posh enable upgradenotice
oh-my-posh disable upgradenotice

Breaking changes
Config: OSC99 is removed

Set pwd: OSC99 instead of OSC99: true
Segment: cache_timeout is removed

Segment caching is now managed on a higher level, namely the segment itself. You \ 
can cache any segment for a specified amount of time by using the new cache \ 
field:

{
  "type": "git",
  "cache": {
    "duration": "1minute",
    "strategy": "folder"
  }
}

Duration can take in values from 1second(s) to xmonths as well as the infinite \ 
keyword. The strategy can be folder or session, with folder being the default. \ 
Folder is smart enough to take into account SCM context in subfolder, as long as \ 
the SCM tool supports it.
Segment: cache_version is removed

The version is now cached for 24 hours by default. Use the above caching \ 
mechanism to tweak that even more.
Block: type: linebreak is removed

This was marked as deprecated for a long time and has now been removed. Add \ 
newline: true to the block you want to see
on a new line.
Block: horizontal_offset and vertical_offset are removed

This was only relevant in they days where the block positioning wasn't that \ 
reliable yet, should no longer be needed.
Changelog
Bug Fixes

    color: resolve palette before ANSI conversion (6a8cecb), closes #5790
    image: initialize image CLI correctly (4ebbdd3)
    windows: do not follow app store symlinks (ab39417)

Code Refactoring

    segment: remove templates (42b776b)

Features

    cache: add segment caching strategy (95d8546)
    cache: create .cache if no other options are found (fbcd78e), closes #5758
    cache: remove segment specific caching (4fe6efc)
    cache: store cache on segment level (a45fb39)
    expose segment output text (9f57650), closes #5750
    language: add version caching for 1 week (b3b41fc)
    notice: disable upgrade notice by default (efa8ef9)
    osc: remove OSC99 from config (0c6ab9b)
    project: add support for dart (17c19c3)
    project: add support for mojo (d64de61)
    remove offset settings from block (e7cbbde)
    segment: add mojo (6ae82f4)

Performance Improvements

    add sync pool for template struct (84ac954)
    correctly align struct fields (d4b86e6)
    template: cache template functions (9e19420)

BREAKING CHANGES

    segment: with templates being removed, this need to be a single template \ 
element now
    notice: changes disable_notice: false to upgrade_notice: true
    this is now completely deprecated and no longer supported
    osc: this requires to set pwd: OSC99 instead of OSC99: true

Assets 28

Files:
RevisionActionfile
1.205modifypkgsrc/shells/oh-my-posh/Makefile
1.189modifypkgsrc/shells/oh-my-posh/distinfo
1.77modifypkgsrc/shells/oh-my-posh/go-modules.mk