Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
5cae1e1
docs(command): README for the command framework
christerswahn Nov 15, 2026
c294ca7
docs(command): Command framework example
christerswahn Nov 12, 2026
f8bc396
feat(command): General Middleware sub-package
christerswahn Nov 1, 2026
0181629
feat(command): Base classes / facilities for new CommandRunner & Command
christerswahn Nov 12, 2026
b2eccca
feat(command): New CommandRunner, Command, and resolver
christerswahn Nov 12, 2026
4f4bd99
test(command): CommandRunner / Command tests
christerswahn Nov 12, 2026
a76dccc
feat(command): Usage output generation framework
christerswahn Nov 12, 2026
d19970b
feat(command): Help option and command
christerswahn Nov 12, 2026
1da6643
feat(command): Command barrel files
christerswahn Nov 12, 2026
59df85e
feat(command): Add shell completion for CommandRunner
christerswahn Nov 15, 2026
b4e6074
feat(command): Completion with resolved CommandContexts
christerswahn Nov 11, 2026
e4dee0d
fix(command): Usage automatically infers allowed values from EnumOption
christerswahn Nov 15, 2026
d7dd599
ci(command): Tests for shell completions
christerswahn Nov 1, 2026
d2bf59a
fix(command): Fixed Dart formatting
christerswahn Nov 15, 2026
f70f928
fix(command): Support redirection ops like > in bash completion
christerswahn Nov 16, 2026
f139b5e
fix(command): Usage for hidden options, configKey, and bridge overrides
christerswahn Nov 16, 2026
fd1c237
fix(command): Reject reparenting, and run parameterized branch as leaf
christerswahn Nov 16, 2026
09a442e
fix(command): Completion of option clusters, value spaces, pwsh paths
christerswahn Nov 16, 2026
35df8e9
docs(command): Resolved contexts and middleware during completion
christerswahn Nov 16, 2026
44e078f
test(command): Null-argument middleware tests detect a skipped handler
christerswahn Nov 16, 2026
aa06f18
docs(command): Clarified acceptsPartialCommandLine doc comment
christerswahn Nov 16, 2026
1cccd6a
feat(command): Completion can auto-detects shell and install
christerswahn Nov 16, 2026
c42764a
fix(command): Completion quoting, path fallbacks, and usage wrapping
christerswahn Nov 16, 2026
a59dac0
ci(command): Make the Zsh function directories secure on the runner
christerswahn Nov 16, 2026
749551b
fix(command): Completion install rejects paths and keeps file encodings
christerswahn Nov 16, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
67 changes: 67 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,3 +64,70 @@ jobs:
- run: dart pub get
- run: dart analyze --fatal-infos
- run: dart test

shell_completion:
name: Shell completion integration
strategy:
fail-fast: false
matrix:
include:
# Bash and PowerShell are preinstalled on the Ubuntu runners;
# Zsh, Fish and Carapace are installed below.
- platform: ubuntu-latest
shells: bash,zsh,fish,pwsh,carapace
# PowerShell is preinstalled on the Windows runners. The other
# shells' test harnesses are POSIX scripts and do not run there.
- platform: windows-latest
shells: pwsh
runs-on: ${{ matrix.platform }}
defaults:
run:
working-directory: packages/config
env:
CARAPACE_VERSION: 1.8.1
steps:
- uses: actions/checkout@v4
- uses: dart-lang/setup-dart@v1.7.1
with:
sdk: stable

- name: Install Zsh and Fish
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install -y zsh fish

# The runner image makes /usr/share writable by everyone. Zsh does not
# initialize its completion system from such directories without asking
# the user, which it cannot do in the tests.
- name: Make the Zsh function directories secure
if: runner.os == 'Linux'
run: |
zsh -fc 'autoload -Uz compaudit; compaudit 2>/dev/null' |
xargs -r sudo chmod go-w

- name: Install Carapace
if: runner.os == 'Linux'
run: |
curl -sSL -o /tmp/carapace.tar.gz \
"https://github.com/carapace-sh/carapace-bin/releases/download/v${CARAPACE_VERSION}/carapace-bin_${CARAPACE_VERSION}_linux_amd64.tar.gz"
sudo tar -xzf /tmp/carapace.tar.gz -C /usr/local/bin carapace

- name: Show shell versions
if: runner.os == 'Linux'
run: |
bash --version | head -n 1
zsh --version
fish --version
pwsh --version
carapace --version

- name: Show shell versions
if: runner.os == 'Windows'
run: pwsh --version

- run: dart pub get
- name: Run the completion tests in the shells supported on ${{ runner.os }}
run: dart test test/command/completion/shell_integration_test.dart
env:
CLI_COMPLETION_SHELLS: ${{ matrix.shells }}
Loading
Loading