fix: no importing, catch errors, ascii art
This commit is contained in:
@@ -6,6 +6,8 @@ import commands.init as init
|
|||||||
import commands.pull as pull
|
import commands.pull as pull
|
||||||
import commands.push as push
|
import commands.push as push
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
args, ap = cliargs.add_cli_args()
|
args, ap = cliargs.add_cli_args()
|
||||||
|
|
||||||
if args.cmd == None:
|
if args.cmd == None:
|
||||||
@@ -26,8 +28,9 @@ print(
|
|||||||
"""
|
"""
|
||||||
)
|
)
|
||||||
|
|
||||||
|
try:
|
||||||
if args.cmd == "commit":
|
if args.cmd == "commit":
|
||||||
commit.commit(args.dry_run, args.force, args.no_commit)
|
commit.commit(args.dry_run, args.force, args.no_render)
|
||||||
elif args.cmd == "config":
|
elif args.cmd == "config":
|
||||||
config.config()
|
config.config()
|
||||||
elif args.cmd == "init":
|
elif args.cmd == "init":
|
||||||
@@ -36,3 +39,7 @@ elif args.cmd == "pull":
|
|||||||
pull.pull(args.rebase, args.apply)
|
pull.pull(args.rebase, args.apply)
|
||||||
elif args.cmd == "push":
|
elif args.cmd == "push":
|
||||||
push.push(args.force)
|
push.push(args.force)
|
||||||
|
except KeyboardInterrupt as e:
|
||||||
|
exit(130)
|
||||||
|
except Exception as e:
|
||||||
|
raise e
|
||||||
|
|||||||
@@ -1,8 +1,11 @@
|
|||||||
from commands.util.choice import confirm_overwrite
|
from commands.util import pacman
|
||||||
|
from commands.util.input_mgr import confirm_overwrite, password
|
||||||
|
|
||||||
|
|
||||||
def commit(dry_run: bool = False, force: bool = False):
|
def commit(dry_run: bool = False, force: bool = False, no_render: bool = False):
|
||||||
if dry_run:
|
if dry_run:
|
||||||
pass
|
pass
|
||||||
print("Commit, force:", force)
|
print("Commit, force:", force)
|
||||||
|
password()
|
||||||
|
print(pacman.list_explicitly_installed())
|
||||||
print(confirm_overwrite())
|
print(confirm_overwrite())
|
||||||
|
|||||||
@@ -1,13 +0,0 @@
|
|||||||
from typing import List
|
|
||||||
|
|
||||||
|
|
||||||
def compute_diff(paths: List[str]):
|
|
||||||
pass
|
|
||||||
|
|
||||||
|
|
||||||
def file_diff(path: str):
|
|
||||||
pass
|
|
||||||
|
|
||||||
|
|
||||||
def pkg_diff():
|
|
||||||
pass
|
|
||||||
Reference in New Issue
Block a user