Skip to content

Add auto-completion for the CLI arguments - #124

Merged
suricactus merged 8 commits into
masterfrom
feat/auto-completion
Dec 1, 2026
Merged

suricactus merged 8 commits into
masterfrom
feat/auto-completion

Conversation

@gounux

@gounux gounux commented Nov 28, 2026

Copy link
Copy Markdown
Member

While playing quite intensively with the QFieldCloud CLI, was thinking that having an auto-completion for the CLI arguments might be helpful:

# pressing the TAB key twice:
$ qfieldcloud-cli list-
list-projects  list-files     list-jobs      

Basically: in a bash, run eval "$(_QFIELDCLOUD_CLI_COMPLETE=bash_source qfieldcloud-cli)", or add this line to .bashrc in your home dir.

Tested with bash and zsh successfully, could also be nice to have it on mac & PowerShell, though that's a different and more complex matter.

@gounux
gounux force-pushed the feat/auto-completion branch from c720fee to 0409c18 Compare November 28, 2026 15:26

@manylon manylon left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, some minor questions and comments! 🚀

Comment thread tests/test_cli_client.py Resolved
Comment thread tests/test_cli_client.py Resolved
Comment thread tests/test_cli_client.py Resolved
Comment thread qfieldcloud_sdk/cli.py Resolved
@gounux gounux mentioned this pull request Dec 1, 2026
@suricactus
suricactus merged commit ccfb50e into master Dec 1, 2026
8 checks passed
@suricactus
suricactus deleted the feat/auto-completion branch December 1, 2026 19:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants