From 9df079060c9315251d37fb6c61926b451112132f Mon Sep 17 00:00:00 2001 From: Schemen Date: Wed, 27 Jan 2021 16:12:19 +0100 Subject: [PATCH] start with the craft command --- dsp_calc.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/dsp_calc.py b/dsp_calc.py index 95ed36b..53150bf 100755 --- a/dsp_calc.py +++ b/dsp_calc.py @@ -28,6 +28,25 @@ def verify(): else: click.echo("Your data seems to be good.") + +@cli.command() +@click.argument('item') +@click.option('-p', '--ppm', default=1, help='Parts per Minute. How many parts you need per minute.') +@click.option('-a','--amount', default=1, help='How many you want to craft.') +@click.option('--assembler', + type=click.Choice(['mk1', 'mk2'],case_sensitive=False), help='Which assembler do you use?',default="mk2") +def craft(item): + """ + Shows what you need to craft an item. + + Pass the item down lowercase, space replaced with a "_" underscore and MKII and mk3. + + Example: + $dsp_calc craft sorter_mk3 + + """ + pass + @cli.command() @click.argument('item') def tree(item):