MCPcopy
hub / github.com/jetify-com/typeid / DecodeCmd

Function DecodeCmd

cli/decode.go:8–19  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6)
7
8func DecodeCmd() *cobra.Command {
9 command := &cobra.Command{
10 Use: "decode <type_id>",
11 Args: cobra.ExactArgs(1),
12 Short: "Decode the given TypeID into a UUID",
13 RunE: decodeCmd,
14 SilenceErrors: true,
15 SilenceUsage: true,
16 }
17
18 return command
19}
20
21func decodeCmd(cmd *cobra.Command, args []string) error {
22 tid, err := typeid.FromString(args[0])

Callers 1

RootCmdFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected