hyperledger / firefly-cli

FireFly Command Line Interface (CLI)
Apache License 2.0
56 stars 50 forks source link

runtime shell completion for stack names #273

Closed tobigiwa closed 5 months ago

tobigiwa commented 9 months ago

runtime shell completion for stack names can be provided using the cobra option ValidArgsFunction.

var infoCmd = &cobra.Command{
    Use:               "info <stack_name>",
    Short:             "Get info about a stack",
    ValidArgsFunction: listStacks,
    ...