MCPcopy Index your code
hub / github.com/jetify-com/typeid / RootCmd

Function RootCmd

cli/root.go:11–26  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9)
10
11func RootCmd() *cobra.Command {
12 command := &cobra.Command{
13 Use: "typeid",
14 Short: "Type-safe, K-sortable, globally unique identifiers",
15 RunE: func(cmd *cobra.Command, args []string) error {
16 return cmd.Help()
17 },
18 SilenceErrors: true,
19 SilenceUsage: true,
20 }
21 command.AddCommand(NewCmd())
22 command.AddCommand(EncodeCmd())
23 command.AddCommand(DecodeCmd())
24
25 return command
26}
27
28func Execute(ctx context.Context, args []string) int {
29 cmd := RootCmd()

Callers 1

ExecuteFunction · 0.85

Calls 3

NewCmdFunction · 0.85
EncodeCmdFunction · 0.85
DecodeCmdFunction · 0.85

Tested by

no test coverage detected