feat: Implement reserves and encodes subcommands#4
Conversation
| createCmd.Flags().StringVar(&encodeParentDir, "encode-parent-directory", "", "Encode parent directory") | ||
| createCmd.Flags().StringVar(&encodeDir, "encode-directory", "", "Encode directory") | ||
| createCmd.Flags().BoolVar(&removeOriginal, "remove-original", false, "Remove original file after encoding") | ||
| createCmd.MarkFlagRequired("recorded-id") |
There was a problem hiding this comment.
🚫 [golangci] reported by reviewdog 🐶
Error return value of createCmd.MarkFlagRequired is not checked (errcheck)
| createCmd.Flags().StringVar(&encodeDir, "encode-directory", "", "Encode directory") | ||
| createCmd.Flags().BoolVar(&removeOriginal, "remove-original", false, "Remove original file after encoding") | ||
| createCmd.MarkFlagRequired("recorded-id") | ||
| createCmd.MarkFlagRequired("encode-mode") // Make encode-mode required |
There was a problem hiding this comment.
🚫 [golangci] reported by reviewdog 🐶
Error return value of createCmd.MarkFlagRequired is not checked (errcheck)
| createCmd.Flags().StringVar(&encodeParentDir, "encode-parent-directory", "", "Encode parent directory") | ||
| createCmd.Flags().StringVar(&encodeDir, "encode-directory", "", "Encode directory") | ||
| createCmd.Flags().BoolVar(&allowEndLack, "allow-end-lack", false, "Allow recording to end early") | ||
| createCmd.MarkFlagRequired("program-id") |
There was a problem hiding this comment.
🚫 [golangci] reported by reviewdog 🐶
Error return value of createCmd.MarkFlagRequired is not checked (errcheck)
| offset int | ||
| limit int | ||
| isEncoding bool | ||
|
|
There was a problem hiding this comment.
🚫 [golangci] reported by reviewdog 🐶
File is not properly formatted (gofmt)
| channel int | ||
| status string | ||
| keyword string | ||
|
|
There was a problem hiding this comment.
🚫 [golangci] reported by reviewdog 🐶
File is not properly formatted (gofmt)
| ) | ||
|
|
||
| var ( | ||
| offset int |
There was a problem hiding this comment.
🚫 [golangci] reported by reviewdog 🐶
var offset is unused (unused)
|
|
||
| var ( | ||
| offset int | ||
| limit int |
There was a problem hiding this comment.
🚫 [golangci] reported by reviewdog 🐶
var limit is unused (unused)
| var ( | ||
| offset int | ||
| limit int | ||
| isEncoding bool |
There was a problem hiding this comment.
🚫 [golangci] reported by reviewdog 🐶
var isEncoding is unused (unused)
This commit introduces the and subcommands to the CLI tool. Key changes include: - Implementation of , , , , and commands. - Implementation of , , and commands. - Updates to the API client wrapper () to support new API calls. - Refinements to output formatting functions in . - Addressing compilation errors and ensuring a successful build. Note: Creating reserves by program ID is not directly supported by the EPGStation API for manual reserves; they are created with encode options.
3d46c1d to
6f982e1
Compare
feat: Implement reserves and encodes subcommands
This commit introduces the and subcommands to the CLI tool.
Key changes include:
Note: Creating reserves by program ID is not directly supported by the EPGStation API for manual reserves; they are created with encode options.