inkdevhub / drink

De-chained Ready-to-play ink! playground
Apache License 2.0
69 stars 15 forks source link

Allow starting the CLI with an initial pwd set #23

Closed piotrMocz closed 1 year ago

piotrMocz commented 1 year ago

This was mentioned as a half-measure for #8 and it seems to cover a lot of the use cases (assuming users start drink-cli to mostly work on one contract.

Usage:

$ drink-cli --help
Usage: drink-cli [OPTIONS]

Options:
  -p, --path <DIRECTORY>  Starts the CLI in the provided directory
  -h, --help              Print help
  -V, --version           Print version

So you're able to start it like:

$ drink-cli examples/flipper

And immediately call build.