Skip to content

Introduce a pre-cobra CLI project #33

@illicitonion

Description

@illicitonion

I think we should add a no-cobra no-dependencies project which exercises:

  1. stdout vs stderr
  2. Reporting errors to the user (i.e. having a main wrap an error-returning function and separating concerns of user output vs functionality
  3. Intro to testing CLI app components
  4. Implementing an interface on a novel struct

Possibly this could take the form of two exercises along the lines of:

  1. Write all args comma-separated to a file
  2. Implement your own version of bytes.Buffer (or a slightly cut-down API thereof)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions