diff --git a/banana/cli.py b/banana/cli.py index f6033d8..ebfa113 100644 --- a/banana/cli.py +++ b/banana/cli.py @@ -74,45 +74,6 @@ def main(): args.func(args) -def ananas2dec(): - parser = argparse.ArgumentParser(description="Convert ananas string to dec") - parser.add_argument("ananas", help="String to be converted") - args = parser.parse_args() - - print(banana.ananas2dec(args.ananas)) - - -def avocado2dec(): - parser = argparse.ArgumentParser(description="Convert avocado string to dec") - parser.add_argument("avocado", help="String to be converted") - args = parser.parse_args() - - print(banana.avocado2dec(args.avocado)) - - -def banana2dec(): - parser = argparse.ArgumentParser(description="Convert banana string to dec") - parser.add_argument("banana", help="String to be converted") - parser.add_argument("--dictionary", help="Set dictionary", type=list, nargs="+") - parser.add_argument( - "--dictstart", help="Set starting dictionary", type=int, default=0 - ) - parser.add_argument( - "--shiftend", help="Set shift for ending dictionary", type=int, default=0 - ) - args = parser.parse_args() - - print(banana.banana2dec(args.banana)) - - -def ribes2dec(): - parser = argparse.ArgumentParser(description="Convert ribes string to dec") - parser.add_argument("ribes", help="String to be converted") - args = parser.parse_args() - - print(banana.ribes2dec(args.ribes)) - - def bananarandom(): parser = argparse.ArgumentParser(description="Generate random banana") parser.add_argument("--dictionary", help="Set dictionary", type=list, nargs="+") @@ -132,64 +93,6 @@ def bananarandom(): ) -def dec2ananas(): - parser = argparse.ArgumentParser(description="Convert dec number to ananas") - parser.add_argument("num", help="Number to be converted", type=int) - parser.add_argument("--minlength", help="Set minimum length", type=int, default=0) - args = parser.parse_args() - - print(banana.dec2ananas(args.num)) - - -def dec2avocado(): - parser = argparse.ArgumentParser(description="Convert dec number to avocado") - parser.add_argument("num", help="Number to be converted", type=int) - parser.add_argument("--minlength", help="Set minimum length", type=int, default=0) - args = parser.parse_args() - - print(banana.dec2avocado(args.num, minlength=args.minlength)) - - -def dec2banana(): - parser = argparse.ArgumentParser(description="Convert dec number to banana") - parser.add_argument("num", help="Number to be converted", type=int) - parser.add_argument("--dictionary", help="Set dictionary", type=list, nargs="+") - parser.add_argument( - "--dictstart", help="Set starting dictionary", type=int, default=0 - ) - parser.add_argument( - "--shiftend", help="Set shift for ending dictionary", type=int, default=0 - ) - parser.add_argument("--minlength", help="Set minimum length", type=int, default=0) - args = parser.parse_args() - - print(banana.dec2banana(args.num)) - - -def dec2ribes(): - parser = argparse.ArgumentParser(description="Convert dec number to ribes") - parser.add_argument("num", help="Number to be converted", type=int) - parser.add_argument("--minlength", help="Set minimum length", type=int, default=0) - args = parser.parse_args() - - print(banana.dec2ribes(args.num)) - - -def isbanana(): - parser = argparse.ArgumentParser(description="Checks if string is banana") - parser.add_argument("banana", help="String to be checked") - parser.add_argument("--dictionary", help="Set dictionary", type=list, nargs="+") - parser.add_argument( - "--dictstart", help="Set starting dictionary", type=int, default=0 - ) - parser.add_argument( - "--shiftend", help="Set shift for ending dictionary", type=int, default=0 - ) - args = parser.parse_args() - - print(banana.isbanana(args.banana)) - - if __name__ == "__main__": # pragma: no cover main() diff --git a/setup.py b/setup.py index bb61bad..44743df 100644 --- a/setup.py +++ b/setup.py @@ -36,16 +36,7 @@ setup( "console_scripts": [ "banana=banana.cli:main", "accavallavacca=banana.cli:main", - "ananas2dec=banana.cli:ananas2dec", - "avocado2dec=banana.cli:avocado2dec", - "banana2dec=banana.cli:banana2dec", - "ribes2dec=banana.cli:ribes2dec", "bananarandom=banana.cli:bananarandom", - "dec2ananas=banana.cli:dec2ananas", - "dec2avocado=banana.cli:dec2avocado", - "dec2banana=banana.cli:dec2banana", - "dec2ribes=banana.cli:dec2ribes", - "isbanana=banana.cli:isbanana", ] }, install_requires=requirements,