mirror of
https://github.com/ipfs/kubo.git
synced 2025-08-14 11:01:10 +08:00
refactor: get rid of cmdDetails awkwardness
This commit is contained in:
@ -66,6 +66,7 @@ func CommandsCmd(root *cmds.Command) *cmds.Command {
|
||||
Options: []cmds.Option{
|
||||
cmds.BoolOption(flagsOptionName, "f", "Show command flags"),
|
||||
},
|
||||
Extra: CreateCmdExtras(SetDoesNotUseRepo(true)),
|
||||
Run: func(req *cmds.Request, res cmds.ResponseEmitter, env cmds.Environment) error {
|
||||
rootCmd := cmd2outputCmd("ipfs", root)
|
||||
rootCmd.showOpts, _ = req.Options[flagsOptionName].(bool)
|
||||
|
Reference in New Issue
Block a user