dfinity / sdk

IC SDK: a Software Development Kit for creating and managing canister smart contracts on the ICP blockchain.
https://internetcomputer.org/developers
Apache License 2.0
174 stars 83 forks source link

Add tab completion to dfx #2371

Open bitdivine opened 2 years ago

bitdivine commented 2 years ago

Motivation

When writing commands, tab completion helps.

Proposed implementation

clap generates tab completion scripts. Can we use it please?

An example of how tab completion is installed in another project: https://rust-lang.github.io/rustup/installation/index.html#enable-tab-completion-for-bash-fish-zsh-or-powershell

sesi200 commented 2 years ago

This is part of our roadmap and will be implemented at some point (hopefully not too far out...).

ukaznil commented 1 year ago

I'm tackling on it now. For tentative use, you can refer to my samples: https://github.com/ukaznil/dfx-completions Later on, I will think which options we can take to integrate it with this sdk repo.