(deps commandDeps)
| 914 | } |
| 915 | |
| 916 | func newMemoryDailyCommand(deps commandDeps) *cobra.Command { |
| 917 | cmd := &cobra.Command{ |
| 918 | Use: memoryDailyKey, |
| 919 | Short: "Inspect Memory v2 daily operation logs", |
| 920 | } |
| 921 | cmd.AddCommand(newMemoryDailyListCommand(deps)) |
| 922 | cmd.AddCommand( |
| 923 | newMemoryDailyUnsupportedSelectorCommand( |
| 924 | "show <date>", |
| 925 | "memory.unsupported: daily show is not registered in Slice 1 API", |
| 926 | exactOneNonBlankArg(), |
| 927 | ), |
| 928 | ) |
| 929 | cmd.AddCommand( |
| 930 | newMemoryDailyRetentionCommand("archive", "memory.unsupported: daily archive is not registered in Slice 1 API"), |
| 931 | ) |
| 932 | cmd.AddCommand( |
| 933 | newMemoryDailyUnsupportedSelectorCommand( |
| 934 | "restore <date>", |
| 935 | "memory.unsupported: daily restore is not registered in Slice 1 API", |
| 936 | exactOneNonBlankArg(), |
| 937 | ), |
| 938 | ) |
| 939 | cmd.AddCommand( |
| 940 | newMemoryDailyRetentionCommand("purge", "memory.unsupported: daily purge is not registered in Slice 1 API"), |
| 941 | ) |
| 942 | return cmd |
| 943 | } |
| 944 | |
| 945 | func newMemoryDailyListCommand(deps commandDeps) *cobra.Command { |
| 946 | var flags memorySelectorFlags |
no test coverage detected