Skip to content

Conversation

@musaprg
Copy link
Member

@musaprg musaprg commented Jun 27, 2025

feat: Implement reserves and encodes subcommands

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.

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")

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [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

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [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")

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [golangci] reported by reviewdog 🐶
Error return value of createCmd.MarkFlagRequired is not checked (errcheck)

offset int
limit int
isEncoding bool

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [golangci] reported by reviewdog 🐶
File is not properly formatted (gofmt)

channel int
status string
keyword string

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [golangci] reported by reviewdog 🐶
File is not properly formatted (gofmt)

)

var (
offset int

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [golangci] reported by reviewdog 🐶
var offset is unused (unused)


var (
offset int
limit int

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [golangci] reported by reviewdog 🐶
var limit is unused (unused)

var (
offset int
limit int
isEncoding bool

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [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.
@musaprg musaprg force-pushed the feature/add-reserves-encodes-subcommands branch from 3d46c1d to 6f982e1 Compare June 27, 2025 14:41
@musaprg musaprg closed this Jun 27, 2025
@musaprg musaprg deleted the feature/add-reserves-encodes-subcommands branch June 27, 2025 14:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants