()
| 6 | ) |
| 7 | |
| 8 | func 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 | |
| 21 | func decodeCmd(cmd *cobra.Command, args []string) error { |
| 22 | tid, err := typeid.FromString(args[0]) |