Skip to content

refactor: replace cobra with coder/serpent#158

Merged
kacpersaw merged 1 commit intomainfrom
kacpersaw/serpent
Feb 11, 2026
Merged

refactor: replace cobra with coder/serpent#158
kacpersaw merged 1 commit intomainfrom
kacpersaw/serpent

Conversation

@kacpersaw
Copy link
Contributor

Closes #45

Summary

Replaces spf13/cobra with coder/serpent for the CLI framework.

Changes

  • Migrate from cobra to serpent CLI framework
  • Use serpent's native Env field for environment variable support
  • Use serpent's native Default field for default values
  • Improved help output formatting (Go toolchain style)

No breaking changes

  • All CLI flags remain identical (same names, same shorthand letters)
  • Environment variables remain the same (CODER_URL, CODER_NAMESPACES)
  • Default values unchanged

@kacpersaw kacpersaw marked this pull request as ready for review February 5, 2026 09:51
Closes #45

- Migrate from spf13/cobra to coder/serpent CLI framework
- Use serpent's native environment variable support
- Use serpent's native default value support
- Improved help output formatting
@kacpersaw kacpersaw merged commit 5e742fe into main Feb 11, 2026
4 checks passed
@kacpersaw kacpersaw deleted the kacpersaw/serpent branch February 11, 2026 13:46
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.

replace cobra with coder/serpent

2 participants