Skip to content

Commit

Permalink
...typos fix
Browse files Browse the repository at this point in the history
  • Loading branch information
vitaly-zdanevich committed Sep 15, 2024
1 parent 75ad9ec commit 8677868
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ geeknote edit --note "Naughty List" --title "Nice List" --content "WRITE"

### Notes: Showing note content

You can output any note in console using command *show* either independently or as a subsequent command to *find*. When you use *show* on a search made previously in which there was more than one result, Geeknote will ask you to make a choise.
You can output any note in console using command *show* either independently or as a subsequent command to *find*. When you use *show* on a search made previously in which there was more than one result, Geeknote will ask you to make a choice.

##### Synopsis

Expand Down Expand Up @@ -665,14 +665,14 @@ gnsync --path <path to directory which to sync>
| ‑‑path | directory to sync | The directory you want to sync with Evernote. It should be the directory with text content files. |
| ‑‑mask | unix shell-style wildcards to select the files | You can tell *gnsync* what filetypes to sync. By default *gnsync* tries to open every file in the directory. But you can set the mask like: &#042;.txt, &#042;.log, &#042;.md, &#042;.markdown. |
| ‑‑format | in what format to save the note - plain or markdown | Set the engine which to use while files uploading. *gnsync* supports markdown and plain text formats. By default it uses plain text engine. |
| ‑‑notebook | notebook where to save | You can set the notebook which will be syncronized with local directory. But if you won't set this option, *gnsync* will create new notebook with the name of the directory that you want to sync. |
| ‑‑notebook | notebook where to save | You can set the notebook which will be synchronized with local directory. But if you won't set this option, *gnsync* will create new notebook with the name of the directory that you want to sync. |
| ‑‑all | | You can specify to synchronize all notebooks already on the server, into subdirectories of the path. Useful with --download to do a backup of all notes. |
| ‑‑logpath | path to logfile | *gnsync* can log information about syncing and with that option you can set the logfile. |
| ‑‑two-way | | Normally *gnsync* will only upload files. Adding this flag will also make it download any notes not present as files in the notebook directory (after uploading any files not present as notes) |
| ‑‑download-only | | Normally *gnsync* will only upload files. Adding this flag will make it download notes, but not upload any files |

##### Description
The application *gnsync* is very useful in system administration, because you can syncronize you local logs, statuses and any other production information with Evernote.
The application *gnsync* is very useful in system administration, because you can synchronize you local logs, statuses and any other production information with Evernote.

##### Examples

Expand Down
2 changes: 1 addition & 1 deletion geeknote/editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ def edit(self):
editor = os.environ.get("EDITOR")

if not editor:
# If default editor is not finded, then use nano as a default.
# If default editor is not found, then use nano as a default.
if sys.platform == "win32":
editor = config.DEF_WIN_EDITOR
else:
Expand Down
2 changes: 1 addition & 1 deletion geeknote/geeknote.py
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ def loadNoteContent(self, note):
@EdamException
def loadLinkedNoteContent(self, note):
if not isinstance(note, object):
raise Excetion(
raise Exception(
"Note content must be an " "instance of Note, '%s' given." % type(note)
)

Expand Down
4 changes: 2 additions & 2 deletions tests/test_out.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,11 @@ def test_separator_empty_args_success(self):
self.assertEqual(sys.stdout.read(), '\n\n')

def test_failure_message_success(self):
sav = sys.stderr
save = sys.stderr
buf = StringIO()
sys.stderr = buf
failureMessage('fail')
sys.stderr = sav
sys.stderr = save
buf.seek(0)
self.assertEqual(buf.read(), 'fail\n')

Expand Down

0 comments on commit 8677868

Please sign in to comment.