Skip to content

Adopt cobra #380

Description

@yuryu

Cobra seems like a popular package used for CLI applications.

Pros:

  • Single command for all features (like server and collector)
  • Extensible
  • Go community seems pretty familiar with the syntax
  • Reuse the same code for options and configurations handling

Cons:

  • Breaks compatibility because we'll remove collector

After cobra, it'd look like:

  • open_saves serve to run the server
  • open_saves collect to run the garbage collector

We could also add commands like restart, stop, reload, etc in the future.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions