Skip to content

carapace-sh/carapace-spec

Folders and files

NameName
Last commit message
Last commit date
Nov 10, 2024
Nov 30, 2024
Dec 23, 2024
Sep 9, 2023
Mar 11, 2024
Mar 3, 2024
Nov 10, 2024
Oct 29, 2024
May 5, 2022
Oct 16, 2024
Oct 29, 2024
Jul 27, 2024
Mar 11, 2024
Jul 16, 2024
Aug 17, 2024
Mar 11, 2024
Mar 11, 2024
Jul 16, 2024
Jan 13, 2023
Dec 27, 2024
Dec 27, 2024
Nov 10, 2024
Nov 10, 2024
Sep 14, 2024
Mar 11, 2024
Mar 11, 2024
Mar 11, 2024
Mar 11, 2024
Sep 3, 2024
Oct 29, 2024
Oct 29, 2024
Jul 16, 2024

Repository files navigation

carapace-spec

PkgGoDev GoReportCard documentation Coverage Status Packaging status

Define simple completions using a spec file (based on carapace).

The carapace-spec binary can be used to complete spec files, but carapace-bin is recommended as it supports a range of custom macros.

name: mycmd
description: my command
flags:
  --optarg?: optarg flag
  -r, --repeatable*: repeatable flag
  -v=: flag with value
persistentflags:
  --help: bool flag
completion:
  flag:
    optarg: ["one", "two\twith description", "three\twith style\tblue"]
    v: ["$files"]
commands:
- name: sub
  description: subcommand
  completion:
    positional:
      - ["$list(,)", "1", "2", "3"]
      - ["$directories"]

Generators