notes_cli 0.1.0 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +23 -6
- data/lib/notes_cli.rb +0 -2
- data/lib/notes_cli/controllers/option_parser.rb +3 -3
- data/lib/notes_cli/services/note_lister.rb +2 -0
- data/lib/notes_cli/version.rb +1 -1
- data/notes_cli.gemspec +1 -1
- metadata +2 -4
- data/config.db +0 -0
- data/config.yml.db +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 333db1b8b6dbbcd790a58549547ba44ddc8928fb63a4f1d1af1f565987da1865
|
4
|
+
data.tar.gz: be86e4e00485b7a7ebe8001565b40bde1002c057ce0ab7239e9d4d8a66ed95d1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 62e99f63a3bd462f3852227d54eabaee0e3982909d2317650bc84522f31921b47d34e26b5403953f961e89b18ce221a2f88c8d849d55664558b4fa1e686bb8ed
|
7
|
+
data.tar.gz: 89e4aa5bd7648cace82ed0febae82344cfcc4ed9ad8fc9c101d9ec0b88ad13b5419a42ed6d0b4ffa6c3226f451e2b64c43c985a59d1e6a1d6bd70a73e63b7b65
|
data/README.md
CHANGED
@@ -1,24 +1,34 @@
|
|
1
|
+
# About
|
2
|
+
Easily create, delete and list all your notes.
|
3
|
+
NotesCli lets you create workspaces and notebooks in which you can store notes.
|
4
|
+
Notes are created as md files for ease of storing code snippets.
|
5
|
+
|
6
|
+
# Installation
|
7
|
+
```bash
|
8
|
+
gem install notes_cli
|
9
|
+
```
|
10
|
+
|
1
11
|
# Getting started
|
2
12
|
|
3
|
-
Tell notes_cli where your notes will be stored
|
13
|
+
Tell notes_cli where your notes will be stored
|
4
14
|
```bash
|
5
15
|
notes --notes_folder path/to/where/you/will/store/notes
|
6
16
|
```
|
7
17
|
|
8
|
-
Define your first workspace
|
18
|
+
Define your first workspace
|
9
19
|
```bash
|
10
20
|
notes -w workspace_name
|
11
21
|
```
|
12
22
|
|
13
23
|
# DSL
|
14
24
|
## Notes folder
|
15
|
-
Where you will store all notes, including your workspaces and notebooks as the top layers
|
25
|
+
Where you will store all notes, including your workspaces and notebooks as the top layers
|
16
26
|
|
17
27
|
## Workspace
|
18
|
-
Where you will store notebooks
|
28
|
+
Where you will store notebooks
|
19
29
|
|
20
30
|
## Notebook
|
21
|
-
Where you will store notes
|
31
|
+
Where you will store notes
|
22
32
|
|
23
33
|
## Example
|
24
34
|
Basic case scenario, where:
|
@@ -100,4 +110,11 @@ notes -w workspace_name
|
|
100
110
|
Switching workspace and creating a note there
|
101
111
|
```bash
|
102
112
|
notes -w workspace_name -n notebook note_title
|
103
|
-
```
|
113
|
+
```
|
114
|
+
|
115
|
+
## Help
|
116
|
+
Display available commands
|
117
|
+
|
118
|
+
```bash
|
119
|
+
notes --help
|
120
|
+
```
|
data/lib/notes_cli.rb
CHANGED
@@ -8,11 +8,11 @@ if ARGV.empty?
|
|
8
8
|
end
|
9
9
|
|
10
10
|
OptionParser.new do |opt|
|
11
|
-
opt.on('-n --new_note
|
11
|
+
opt.on('-n --new_note NOTEBOOK NOTE_TITLE') { |option| workspace.create_note(option, ARGV) }
|
12
12
|
|
13
|
-
opt.on('-d --delete_note
|
13
|
+
opt.on('-d --delete_note NOTEBOOK NOTE_TITLE ') { |option| workspace.delete_note(option, ARGV) }
|
14
14
|
|
15
|
-
opt.on('-l --list_notes
|
15
|
+
opt.on('-l --list_notes NOTEBOOK NOTE_TITLE') do |option|
|
16
16
|
workspace.list_notes(option)
|
17
17
|
end
|
18
18
|
|
data/lib/notes_cli/version.rb
CHANGED
data/notes_cli.gemspec
CHANGED
@@ -20,7 +20,7 @@ Gem::Specification.new do |s|
|
|
20
20
|
s.executables << 'notes'
|
21
21
|
s.require_paths = ['lib']
|
22
22
|
s.homepage =
|
23
|
-
'https://
|
23
|
+
'https://github.com/joe-at-github/notes_cli'
|
24
24
|
s.license = 'MIT'
|
25
25
|
s.add_development_dependency 'fakefs', '~> 0.5'
|
26
26
|
s.add_development_dependency 'pry', '~> 0.12'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: notes_cli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Joeffrey Lamy
|
@@ -110,8 +110,6 @@ files:
|
|
110
110
|
- LICENSE.txt
|
111
111
|
- README.md
|
112
112
|
- bin/notes
|
113
|
-
- config.db
|
114
|
-
- config.yml.db
|
115
113
|
- lib/notes_cli.rb
|
116
114
|
- lib/notes_cli/controllers/option_parser.rb
|
117
115
|
- lib/notes_cli/models/workspace.rb
|
@@ -123,7 +121,7 @@ files:
|
|
123
121
|
- lib/notes_cli/services/services.rb
|
124
122
|
- lib/notes_cli/version.rb
|
125
123
|
- notes_cli.gemspec
|
126
|
-
homepage: https://
|
124
|
+
homepage: https://github.com/joe-at-github/notes_cli
|
127
125
|
licenses:
|
128
126
|
- MIT
|
129
127
|
metadata: {}
|
data/config.db
DELETED
Binary file
|
data/config.yml.db
DELETED
Binary file
|