summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar √Čtienne Deparis 2020-01-28 13:08:14 +0100
committerGravatar √Čtienne Deparis 2020-01-28 13:08:14 +0100
commit823a35c5e693237d7020216b39487dc039813ac8 (patch)
treed95f56d8f8422c1168de5f01a54dbf84d2368324
parentb543d9fa94ef9e36e06d7cbeb37e3b2f03cc6042 (diff)
downloadeshelf-823a35c5e693237d7020216b39487dc039813ac8.tar.gz
eshelf-823a35c5e693237d7020216b39487dc039813ac8.tar.xz
eshelf-823a35c5e693237d7020216b39487dc039813ac8.zip
Rename setup module to wizard
-rw-r--r--eshelf/cli.py10
-rw-r--r--eshelf/wizard.py (renamed from eshelf/setup.py)0
2 files changed, 5 insertions, 5 deletions
diff --git a/eshelf/cli.py b/eshelf/cli.py
index b7ebe07..24f29ff 100644
--- a/eshelf/cli.py
+++ b/eshelf/cli.py
@@ -3,7 +3,7 @@ import re
import sys
import argparse
from configparser import ConfigParser
-from eshelf.setup import setup_local_library
+from eshelf.wizard import setup_local_library
from eshelf.reader_orm import ReaderOrm
from eshelf.utils import print_file_tree, print_listing, read_file
from eshelf.bookeen import identify
@@ -13,7 +13,7 @@ class EShelfCli:
def __init__(self):
self.reader_db = None
predefined_actions = ['help', 'books', 'collections', 'add',
- 'remove', 'edit', 'setup', 'list',
+ 'remove', 'edit', 'init', 'list',
'device']
parser = argparse.ArgumentParser(prog='eshelf')
@@ -30,7 +30,7 @@ class EShelfCli:
parser.print_help()
self.exit()
- if args.command == 'setup':
+ if args.command == 'init':
setup_local_library(args.path)
self.exit()
@@ -50,7 +50,7 @@ class EShelfCli:
config_file = os.path.join(self.library_path, '.eshelf.conf')
if not os.path.isfile(config_file):
print('{0} is not a valid library folder. Please do first'
- ' `eshelf setup`'.format(self.library_path))
+ ' `eshelf init`'.format(self.library_path))
self.exit(1)
confparser = ConfigParser()
@@ -59,7 +59,7 @@ class EShelfCli:
if 'reader_mount_point' not in self.config:
print('{0} has been corrupted. Please redo'
- ' `eshelf setup`'.format(self.library_path))
+ ' `eshelf init`'.format(self.library_path))
self.exit(1)
self.reader_mount_point = self.config['reader_mount_point'].rstrip('/')
diff --git a/eshelf/setup.py b/eshelf/wizard.py
index 91cf7b2..91cf7b2 100644
--- a/eshelf/setup.py
+++ b/eshelf/wizard.py