Skip to content

Implement commands #15

Open
Open
@soenkehahn

Description

@soenkehahn

It should be possible to implement commands using sumtypes.

data GitOptions
  = Push {
    force :: Bool
  }
  | Fetch {
    branch :: Maybe String
  }

It's a bit tricky to get global options right in that case, but I think it should be doable.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions