Skip to content

Commit

Permalink
version 0.5.1
Browse files Browse the repository at this point in the history
- print continue prompt in green
- print extra new line after each command in job
  • Loading branch information
elesiuta committed Jan 19, 2021
1 parent 306b872 commit 4d09aa0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion baka.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ def main() -> int:
if verbosity in ["debug"]:
print("\033[94m%s\033[0m" % shlex.join(cmd))
if "interactive" in config.jobs[args.job] and config.jobs[args.job]["interactive"]:
response = input("Continue (yes/no/skip)? ")
response = input("\033[93mContinue (yes/no/skip)?\033[0m ")
if response.strip().lower().startswith("y"):
pass
elif response.strip().lower().startswith("n"):
Expand Down Expand Up @@ -303,6 +303,8 @@ def main() -> int:
command_output.append(proc.stdout.decode().strip())
command_output.append(proc.stderr.decode().strip())
command_output.append("\n")
elif verbosity in ["debug", "info", "error"]:
print("")
elif cmd[0] == "rsync":
# hide permission errors for rsync, otherwise run command normally
proc = subprocess.run(cmd, stderr=subprocess.PIPE, universal_newlines=True)
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setuptools.setup(
name="bakabakabaka",
version="0.5.0",
version="0.5.1",
description="Baka Admin's Kludge Assistant",
long_description=long_description,
long_description_content_type="text/markdown",
Expand Down

0 comments on commit 4d09aa0

Please sign in to comment.