(cmd *cobra.Command, args []string)
| 21 | } |
| 22 | |
| 23 | func newCmd(cmd *cobra.Command, args []string) error { |
| 24 | prefix := "" |
| 25 | if len(args) > 0 { |
| 26 | prefix = strings.ToLower(args[0]) |
| 27 | } |
| 28 | tid, err := typeid.New(prefix) |
| 29 | if err != nil { |
| 30 | return err |
| 31 | } |
| 32 | cmd.Println(tid) |
| 33 | return nil |
| 34 | } |
nothing calls this directly
no outgoing calls
no test coverage detected