This commit is contained in:
Sung Won Cho 2017-04-01 15:23:02 +11:00
commit 216fb74fa7
2 changed files with 49 additions and 0 deletions

View file

@ -12,6 +12,45 @@ On macOS, or Linux, run:
On Windows, download [binary](https://github.com/dnote-io/cli/releases)
## Usage
Dnote categorizes your **notes** by **books**.
All your books and notes are stored in `$HOME/.dnote` as a YAML file.
In the future, you can sync your note with the Dnote server and set up digest notifications to reinforce your learning.
### Commands
**dnote use [book name]**
Change the book to write your note in.
e.g.
dnote use linux
**dnote new "[note]"**
Write a new note under the current book.
e.g.
dnote new "set -e instructs bash to exit immediately if any command has non-zero exit status"
**dnote books**
List all the books that you created
e.g.
$ dnote books
javascript
* linux
tmux
css
## Links
* [Website](https://dnote.io)
@ -19,3 +58,7 @@ On Windows, download [binary](https://github.com/dnote-io/cli/releases)
## License
MIT
-------
> Made by [sung](https://sungwoncho.io)

View file

@ -268,12 +268,18 @@ func checkUpdates() error {
return nil
}
func heartbeat() {
http.Get("http://api.dnote.io/heartbeat")
}
func main() {
err := initDnote()
check(err)
err = checkUpdates()
check(err)
heartbeat()
if len(os.Args) < 2 {
fmt.Println("Dnote - Spontaneously capture new engineering lessons\n")
fmt.Println("Commands:")