nncli

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

commit 5dd529662bd9525baec8cd1bd8c0c779f15bede6
parent ccbf6c730b594715bd30047ab59f987c247db23d
Author: Daniel Moch <daniel@danielmoch.com>
Date:   Wed,  5 Sep 2018 06:22:43 -0400

Remove 'cfg_diff' confval

This is a holdover from sncli. It's useful there because Simplenote
keeps a version history for notes, which is not a feature of NextCloud
Notes.

Diffstat:
Mdocs/source/configuration.rst | 4----
Mnncli/config.py | 2--
2 files changed, 0 insertions(+), 6 deletions(-)

diff --git a/docs/source/configuration.rst b/docs/source/configuration.rst @@ -154,10 +154,6 @@ General Options Optional. Default value: ``$PAGER`` if defined in the user's environment, else ``less -c``. -.. confval:: cfg_diff - - .. todo:: Remove ``cfg_diff`` - .. confval:: cfg_max_logs Sets the number of log events to display together in the consule GUI diff --git a/nncli/config.py b/nncli/config.py @@ -25,7 +25,6 @@ def __init__(self, custom_file=None): 'cfg_status_bar' : 'yes', 'cfg_editor' : os.environ['EDITOR'] if 'EDITOR' in os.environ else 'vim {fname} +{line}', 'cfg_pager' : os.environ['PAGER'] if 'PAGER' in os.environ else 'less -c', - 'cfg_diff' : 'diff -b -U10', 'cfg_max_logs' : '5', 'cfg_log_timeout' : '5', 'cfg_log_reversed' : 'yes', @@ -159,7 +158,6 @@ def __init__(self, custom_file=None): self.configs['status_bar'] = [ cp.get(cfg_sec, 'cfg_status_bar'), 'Show the status bar' ] self.configs['editor'] = [ cp.get(cfg_sec, 'cfg_editor'), 'Editor command' ] self.configs['pager'] = [ cp.get(cfg_sec, 'cfg_pager'), 'External pager command' ] - self.configs['diff'] = [ cp.get(cfg_sec, 'cfg_diff'), 'External diff command' ] self.configs['max_logs'] = [ cp.get(cfg_sec, 'cfg_max_logs'), 'Max logs in footer' ] self.configs['log_timeout'] = [ cp.get(cfg_sec, 'cfg_log_timeout'), 'Log timeout' ] self.configs['log_reversed'] = [ cp.get(cfg_sec, 'cfg_log_reversed'), 'Log file reversed' ]