https://github.com/samparsky/go-cli
A sample cli application in Golang using cobra and boltdb.
https://github.com/samparsky/go-cli
Last synced: 6 months ago
JSON representation
A sample cli application in Golang using cobra and boltdb.
- Host: GitHub
- URL: https://github.com/samparsky/go-cli
- Owner: samparsky
- Created: 2018-04-24T05:27:54.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-04-24T06:02:24.000Z (over 7 years ago)
- Last Synced: 2025-03-26T23:18:43.385Z (9 months ago)
- Language: Go
- Size: 3.77 MB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Golang CLI Task manager
A sample cli application in golang using cobra and boltdb.
Uses Dep for dependency management.
# Build
```bash
$ git clone https://github.com/samparsky/go-cli
$ go install .
```
### Add task
```bash
$ task add Fetch water
$ task add Visit grocery
$ task add Call mama
```
### List task
```bash
$ task list
You have the following tasks
1. Fetch Water
2. Visit grocery
3. Call mama
```
### Do Tasks
```bash
$ task do 1
Marked "1" as completed.
```