Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Shell completion #114

Open
KevinMX opened this issue Mar 28, 2024 · 0 comments
Open

[Feature Request] Shell completion #114

KevinMX opened this issue Mar 28, 2024 · 0 comments
Labels
enhancement New feature or request
Milestone

Comments

@KevinMX
Copy link

KevinMX commented Mar 28, 2024

This comes to my mind few days ago when I was using another program, which offers this feature.

As ruyi CLI already has many functions, shell completion might come in handy.

e.g.

# Generate autocompletion script for ruyi and write to .bashrc, or maybe other shells, e.g. zsh, fish
$ ruyi completion bash >> ~/.bashrc
$ source .bashrc
$ ruyi <TAB>
    device              Manage devices
    extract             Fetch package(s) then extract to current directory
    install (i)         Install package from configured repository
    list                List available packages in configured repository
    news                List and read news items from configured repository
    update              Update RuyiSDK repo and packages
    venv                Generate a virtual environment adapted to the chosen toolchain and profile
    admin               (NOT FOR REGULAR USERS) Subcommands for managing Ruyi repos
    self                Manage this Ruyi installation
    version             Print version information
$ ruyi device <TAB>
    provision  Interactively initialize a device for development
$ ruyi device -<TAB>
-h, --help   show help message and exit
...

Something like that.

@KevinMX KevinMX added the enhancement New feature or request label Mar 28, 2024
@xen0n xen0n added this to the Backlog milestone Mar 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants