nncli

NextCloud Notes Command Line Interface
git clone git://git.danielmoch.com/nncli.git
Log | Files | Refs | LICENSE

commit d49e5c705debe0a1e088112585e1a75378a4f395
parent 76e18dfe4d6db79cc0018731eb67b14471034cb9
Author: Daniel Moch <daniel@danielmoch.com>
Date:   Sat, 18 Dec 2021 05:52:56 -0500

cli: Fix (un)favorite

Diffstat:
Mnncli/cli.py | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/nncli/cli.py b/nncli/cli.py @@ -75,7 +75,7 @@ def cat(ctx, key): @click.pass_obj def favorite(nncli, key): """Mark as note as a favorite.""" - nncli.cli_note_favorite(key, 1) + nncli.cli_note_favorite(key, True) @click.command() @click.option( @@ -88,7 +88,7 @@ def favorite(nncli, key): @click.pass_obj def unfavorite(nncli, key): """Remove favorite flag from a note.""" - nncli.cli_note_favorite(key, 0) + nncli.cli_note_favorite(key, False) @click.command(short_help="Print JSON-formatted note to stdout.") @click.option('-k', '--key', type=click.INT, help="Specify the note key.")