Skip to content

Commit db5ade2

Browse files
committed
Remove ununsed commands
1 parent 1aacacf commit db5ade2

File tree

7 files changed

+39
-38
lines changed

7 files changed

+39
-38
lines changed

keep/about.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
__name__ = 'keep'
2-
__version__ = '2.5'
2+
__version__ = '2.5.2'

keep/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,6 @@ def cli(ctx, verbose):
6666
"""
6767
Keep and view shell commands in terminal only.
6868
69-
Read more at https://orkohunter.net/keep
69+
Read more at https://github.com/orkohunter/keep
7070
"""
7171
ctx.verbose = verbose
File renamed without changes.
File renamed without changes.

keep/utils.py

Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -81,39 +81,39 @@ def log(ctx, message):
8181
ctx.log(message)
8282

8383

84-
def push(ctx):
85-
credentials_file = os.path.join(dir_path, '.credentials')
86-
credentials = json.loads(open(credentials_file, 'r').read())
87-
json_path = os.path.join(dir_path, 'commands.json')
88-
credentials['commands'] = open(json_path).read()
89-
url = api_url + '/push'
90-
if click.confirm("This will overwrite the saved "
91-
"commands on the server. Proceed?", default=True):
92-
r = requests.post(url, json=credentials)
93-
if r.status_code == 200:
94-
click.echo("Server successfully updated.")
95-
96-
97-
def pull(ctx, overwrite):
98-
credentials_file = os.path.join(dir_path, '.credentials')
99-
credentials = json.loads(open(credentials_file, 'r').read())
100-
json_path = os.path.join(dir_path, 'commands.json')
101-
url = api_url + '/pull'
102-
103-
r = requests.post(url, json=credentials)
104-
if r.status_code == 200:
105-
commands = json.loads(r.json()['commands'])
106-
107-
if not overwrite:
108-
my_commands = read_commands()
109-
commands.update(my_commands)
110-
111-
if not overwrite or (
112-
overwrite and click.confirm(
113-
"This will overwrite the locally saved commands. Proceed?", default=True)):
114-
with open(json_path, 'w') as f:
115-
f.write(json.dumps(commands))
116-
click.echo("Local database successfully updated.")
84+
# def push(ctx):
85+
# credentials_file = os.path.join(dir_path, '.credentials')
86+
# credentials = json.loads(open(credentials_file, 'r').read())
87+
# json_path = os.path.join(dir_path, 'commands.json')
88+
# credentials['commands'] = open(json_path).read()
89+
# url = api_url + '/push'
90+
# if click.confirm("This will overwrite the saved "
91+
# "commands on the server. Proceed?", default=True):
92+
# r = requests.post(url, json=credentials)
93+
# if r.status_code == 200:
94+
# click.echo("Server successfully updated.")
95+
96+
97+
# def pull(ctx, overwrite):
98+
# credentials_file = os.path.join(dir_path, '.credentials')
99+
# credentials = json.loads(open(credentials_file, 'r').read())
100+
# json_path = os.path.join(dir_path, 'commands.json')
101+
# url = api_url + '/pull'
102+
103+
# r = requests.post(url, json=credentials)
104+
# if r.status_code == 200:
105+
# commands = json.loads(r.json()['commands'])
106+
107+
# if not overwrite:
108+
# my_commands = read_commands()
109+
# commands.update(my_commands)
110+
111+
# if not overwrite or (
112+
# overwrite and click.confirm(
113+
# "This will overwrite the locally saved commands. Proceed?", default=True)):
114+
# with open(json_path, 'w') as f:
115+
# f.write(json.dumps(commands))
116+
# click.echo("Local database successfully updated.")
117117

118118

119119
# def register():

release.sh

100644100755
Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1-
python setup.py bdist_wheel upload
2-
python3 setup.py bdist_wheel upload
3-
python setup.py sdist upload
1+
rm -rf build/*
2+
rm -rf dist/*
3+
python3 setup.py sdist bdist_wheel
4+
twine upload dist/*

0 commit comments

Comments
 (0)