https://github.com/trstringer/go-template-cli-simple
  
  
    Go template for a simple CLI 
    https://github.com/trstringer/go-template-cli-simple
  
        Last synced: 5 days ago 
        JSON representation
    
Go template for a simple CLI
- Host: GitHub
- URL: https://github.com/trstringer/go-template-cli-simple
- Owner: trstringer
- Created: 2023-10-20T01:41:30.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-11-18T16:46:48.000Z (almost 2 years ago)
- Last Synced: 2024-10-11T15:11:48.583Z (about 1 year ago)
- Language: Go
- Size: 10.7 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
- 
            Metadata Files:
            - Readme: README.md
 
Awesome Lists containing this project
README
          # Simple CLI Go template
Quickly create the boilerplate for a simple Go CLI.
## Usage
This requires `gonew`:
```bash
go install golang.org/x/tools/cmd/gonew@latest
```
Create your CLI:
```
gonew github.com/trstringer/go-template-cli-simple your-domain.com/your-project
```
Or to use a specific version/ref of the upstream template:
```
gonew github.com/trstringer/go-template-cli-simple@ your-domain.com/your-project
```
The new project/module is created in the project directory:
```
cd ./your-project
```
Run setup:
```
make setup
```
## Tests
Run unit tests:
```
make test
```
Run e2e tests:
```
make e2e
```