github carapace-sh/carapace-bin v0.12.0

latest releases: v1.0.7, v1.0.6, v1.0.5...
2 years ago

Preinvoke

Generic alteration of completion before execution which enables features like directory change in git -C <DIR>:

2022-05-02-211114_1276x383_scrot

Spec

Experimental support for simple completions using yaml spec files:

name: example
description:
flags:
  --dynamic=: dynamic value
  -o, --optarg?: optarg flag
  -s, --styled=: styled values
completion:
  flag:
    dynamic: ["$(git branch --all | cut -c 3- | sed 's/$/\t\tblue/')", "static value"]
    optarg: ["first", "second", "third"]
    styled:
    - "blue\tblue\tblue"
    - "cyan\tcyan\tcyan"
  positional:
  -  ["pos1-a", "pos1-b", "pos1-c"]
  -  ["$_files"]

Changelog

Don't miss a new carapace-bin release

NewReleases is sending notifications on new releases.