Heart Transplant
Replaced command traversal with a full rewrite.
This provides more fine-grained control and improved logging.
It is a complex core component though and while tests are looking good so far some edge cases are likely to fail.
Logging
Improved logging output (export CARAPACE_LOG=1
):
// /tmp/carapace/carapace.log
2023/01/29 11:46:28.310133 elvish []string{"/home/rsteube/go/bin/carapace", "_carapace", "elvish", "git", "-C", "../carapace-bin/", "log", "--author", ""}
2023/01/29 11:46:28.310165 elvish traverse called for "git" with args []string{"-C", "../carapace-bin/", "log", "--author", ""}
2023/01/29 11:46:28.310167 elvish executing PreRun for "git" with args []string{"-C", "../carapace-bin/", "log", "--author", ""}
2023/01/29 11:46:28.310185 elvish arg "-C" is a flag
2023/01/29 11:46:28.310207 elvish arg "../carapace-bin/" is a flag argument
2023/01/29 11:46:28.310210 elvish arg "log" is a subcommand
2023/01/29 11:46:28.310211 elvish parsing flags for "git" with args []string{"-C", "../carapace-bin/"}
2023/01/29 11:46:28.310215 elvish traverse called for "log" with args []string{"--author", ""}
2023/01/29 11:46:28.310247 elvish arg "--author" is a flag
2023/01/29 11:46:28.310259 elvish removing arg "--author" since it is a flag missing its argument
2023/01/29 11:46:28.310260 elvish parsing flags for "log" with args []string{}
2023/01/29 11:46:28.310262 elvish completing flag argument of "author" for arg ""
Yargs
Added bridge for yargs:
name: ng
description: CLI tool for Angular
completion:
positionalany: ["$_bridge.Yargs(ng)"]
Changelog
- cb6a378 ActionPosener: renamed to ActionComplete
- 068eff1 ActionYargs: fix completion
- 6534f09 ActionYargs: updated example
- 34eb455 Merge pull request #1488 from rsteube/update-carapace
- 6d26e23 Merge pull request #1489 from rsteube/gh-body-emoji
- 0d2b71e Merge pull request #1491 from rsteube/dependabot/go_modules/github.com/rsteube/carapace-spec-0.5.3
- f6ad8b4 Merge pull request #1492 from rsteube/dependabot/go_modules/github.com/rsteube/carapace-0.32.3
- 7e37051 Merge pull request #1493 from rsteube/update-carapace
- 608d04b Merge pull request #1494 from rsteube/gh-updates-2.22.0
- a44b315 Merge pull request #1495 from rsteube/bridge-yargs
- 9111192 Merge pull request #1496 from rsteube/fix-yargs
- 9363233 Merge pull request #1497 from rsteube/rename-posener
- 967d9ca Merge pull request #1498 from rsteube/yargs-example
- d63023e Merge pull request #1499 from rsteube/update-carapace
- e096031 Merge pull request #1500 from rsteube/gum-spin-embed
- 3c5df3e Merge pull request #1501 from rsteube/dependabot/go_modules/github.com/rsteube/carapace-0.32.6
- 77059c2 Merge pull request #1502 from rsteube/gum-spin-dash
- 74794f0 Merge pull request #1503 from rsteube/gh-updates-v2.22.1
- 23b38ba Merge pull request #1504 from rsteube/ln-backup
- fc79710 Merge pull request #1505 from rsteube/gh-release-version
- c16000a added yargs bridge
- 9a1e4e0 build(deps): bump github.com/rsteube/carapace from 0.32.2 to 0.32.3
- 0800099 build(deps): bump github.com/rsteube/carapace from 0.32.5 to 0.32.6
- 75f0b5a build(deps): bump github.com/rsteube/carapace-spec from 0.5.2 to 0.5.3
- b786fed gh: emoji completion in body
- 1dd76fd gh: release - complete next semantic version
- 561b8a8 gh: updates from v2.22.0
- bf7c622 gh: updates from v2.22.1
- d0814bf gum: spin - dash completion
- 39570c8 gum: spin - use EmbedCarapaceBin
- d6a8957 ln: fix backup flag (optarg)
- 74fe1a6 updated carapace
- dfea6a5 updated carapace to v0.32.1
- d7a6d78 updated carapace to v0.32.4