Skip to content

Commit

Permalink
cli: Tutorial in README missing arg/options for clone subcommand (#1857)
Browse files Browse the repository at this point in the history
  • Loading branch information
NReilingh authored Jan 4, 2024
1 parent b635058 commit 6269299
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/cli/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,9 @@ const minigitAdd = Command.make("add", { pathspec, verbose }, ({ pathspec, verbo
})

// minigit clone [--depth <depth>] [--] <repository> [<directory>]
const repository = Args.text({ name: 'repository' })
const directory = Args.text({ name: 'directory' }).pipe(Args.optional)
const depth = Options.integer('depth').pipe(Options.optional)
const minigitClone = Command.make("clone", { repository, directory, depth }, (config) => {
const depth = Option.map(config.depth, (depth) => `--depth ${depth}`)
const repository = Option.some(config.repository)
Expand Down

0 comments on commit 6269299

Please sign in to comment.