Skip to content

Commit

Permalink
Build for Windows (#166)
Browse files Browse the repository at this point in the history
* Fix compilation for Windows

* Update README
  • Loading branch information
Sung Won Cho committed Mar 31, 2019
1 parent 73526a9 commit 0965f76
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 11 deletions.
12 changes: 6 additions & 6 deletions COMMANDS.md
Expand Up @@ -45,7 +45,7 @@ dnote view golang 12

_alias: e_

Edit a note
Edit a note.

```bash
# Launch a text editor to edit a note with the given index.
Expand All @@ -59,7 +59,7 @@ dnote edit linux 1 -c "New Content"

_alias: d_

Remove either a note or a book
Remove either a note or a book.

```bash
# Remove the note with `index` in the specified book.
Expand All @@ -73,7 +73,7 @@ dnote remove -b JS

_alias: f_

Find notes by keywords
Find notes by keywords.

```bash
# find notes by a keyword
Expand All @@ -92,16 +92,16 @@ _Dnote Pro only_

_alias: s_

Sync notes with Dnote cloud
Sync notes with Dnote server. All your data is encrypted before being sent to the server.

## dnote login

_Dnote Pro only_

Start a login prompt
Start a login prompt.

## dnote logout

_Dnote Pro only_

Log out of Dnote
Log out of Dnote.
17 changes: 13 additions & 4 deletions README.md
@@ -1,6 +1,6 @@
# Dnote CLI

A command line interface for spontaneously capturing the things you learn while coding.
A command line interface for a simple, encrypted notebook that respects your privacy.

![Dnote](assets/dnote.gif)

Expand Down Expand Up @@ -28,19 +28,28 @@ Otherwise, you can download the binary for your platform manually from the [rele

## Overview

Write technical notes without getting distracted from programming. The reasons are:
Write down notes in total privacy, without leaving the command line.

Try keeping technical notes using Dnote. The reasons are:

- You are not distracted from programming while using Dnote.
- We forget exponentially unless we write down what we learn and come back.
- Ideas cannot be grokked unless we can put them down in clear words.

Sync your notes to Dnote server and receive automated email digests for spaced repetition.

## Security

All your data is encrypted using AES256 when you sync with the server. Dnote has zero knowledge about the contents and cannot decrypt your data.

## Commands

Please refer to [commands](/COMMANDS.md).

## Links

- [Dnote](https://dnote.io)
- [Dnote Cloud](https://dnote.io/pricing)
- [Browser Extension](https://github.com/dnote/browser-extension)
- [Dnote Pro](https://dnote.io/pricing)
- [Browser extension](https://github.com/dnote/browser-extension)

[![Build Status](https://travis-ci.org/dnote/cli.svg?branch=master)](https://travis-ci.org/dnote/cli)
2 changes: 1 addition & 1 deletion utils/utils.go
Expand Up @@ -52,7 +52,7 @@ func PromptInput(message string, dest *string) error {
func PromptPassword(message string, dest *string) error {
log.Askf(message, true)

password, err := terminal.ReadPassword(syscall.Stdin)
password, err := terminal.ReadPassword(int(syscall.Stdin))
if err != nil {
return errors.Wrap(err, "getting user input")
}
Expand Down

0 comments on commit 0965f76

Please sign in to comment.