-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: addtional make targets for build and ci
- Loading branch information
Showing
3 changed files
with
34 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,9 +14,17 @@ Stripe CLI, etc. | |
## Setup instructions | ||
|
||
1. [Setup go](https://golang.org/doc/install) | ||
2. Clone this repo (git clone [email protected]:auth0/auth0-cli | ||
2. Clone this repo: `git clone [email protected]:auth0/auth0-cli` | ||
3. `make test` - ensure everything works correctly. Should see things pass. | ||
|
||
## Build and run on native platform | ||
|
||
From the top-level directory: | ||
``` | ||
$ make build | ||
$ ./auth0 --help | ||
``` | ||
|
||
## Adding a new command | ||
|
||
This part is not fully fleshed out yet, but here are the steps: | ||
|
@@ -35,12 +43,12 @@ go run ./cmd/auth0 <your command> | |
If you have to add another go dependency, you can follow the steps: | ||
|
||
1. `go get -u github.com/some/path/to/lib` | ||
2. Import the library you need in the relevant file. (This step is necessary so | ||
2. Import the library you need in the relevant file. (This step is necessary, so | ||
the next steps informs `go mod` that this dependency is actually used). | ||
3. go mod tidy | ||
4. go mod vendor | ||
|
||
We use vendoring so the last step is required. | ||
We use vendoring, so the last step is required. | ||
|
||
## References | ||
|
||
|