Skip to content

Commit

Permalink
Added command zipfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Aarik Pokras committed Jan 23, 2023
1 parent c30d591 commit 3b31441
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cmd.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import os
import shutil
import random
import maskpass
import start
Expand Down Expand Up @@ -81,6 +82,10 @@ def cls():
elif cmdLine == "magic8ball":
ball = ['It is certain.', 'It is so.', 'Without a doubt.', 'Yes.', 'You can count on it.', 'As I see it, yes.', 'Most likely.', 'Outlook is good.', 'Absolutely.', 'All signs point to yes.', 'Reply hazy, try again.', 'Ask again later.', 'Better not tell you now.', 'Cannot predict now.', 'Concentrate and ask again.', 'Don\'t count on it.', 'My reply is no.', 'All signs point to no.', 'Outlook not so good.', 'Doubtful.']
print(random.choice(ball))
elif cmdLine == "zipfile":
zipfilen=input("Desired zipfile name: ")
zipfiledir=input('Enter directory to zip: ')
shutil.make_archive(zipfilen, 'zip', zipfiledir)
elif cmdLine == "custcol":
custcolc=input("Enter color: ")
if custcolc == "default":
Expand Down

0 comments on commit 3b31441

Please sign in to comment.