refactor(commands): split commands package into multiple sub-packages

This commit is contained in:
2022-12-11 22:19:23 +00:00
parent 7fdd61b54c
commit c7c6553e53
8 changed files with 172 additions and 137 deletions

View File

@@ -0,0 +1,13 @@
package shared
import "github.com/spf13/cobra"
func FlagString(cmd *cobra.Command, name string) string {
var r string
if f := cmd.Flag(name); f != nil {
r = f.Value.String()
}
return r
}