1
0
mirror of https://github.com/Tygs/0bin.git synced 2023-08-10 21:13:00 +03:00

Merge remove_paste.py and and zerobin.py in cmd.py

The two commands have been merged together, using subcommands.

`remove_paste` is now accessible with `zerobin delete-paste`

`zerobin` is moved to `zerobin runserver` but is still accessible
with `zerobin` to keep compatibility with older versions. Unfortunately,
clize is not structured to allow default subcommand and the actual
implementation is nothing but a hack.
This commit is contained in:
Shir0kamii
2015-09-18 17:36:14 +02:00
parent bd7a372551
commit 590ea9913f
4 changed files with 104 additions and 90 deletions

View File

@ -47,8 +47,7 @@ setup(
],
entry_points = {
'console_scripts': [
'zerobin = zerobin.routes:main',
'remove_paste = zerobin.remove_paste:main',
'zerobin = zerobin.cmd:main',
]
}