Using subcommands instead of using options
I've some suggestions too: How about using subcommands instead of using options for logging in, getting the problem description, listing contests, and submitting code?
Maybe something like:
-
codechefcli loginto login -
codechefcli problem WEICOMto get the problem description -
codechefcli problem --level easyorcodechefcli problem --search easyto search for problems based on difficulty -
codechefcli conteststo list contests -
codechefcli submit WEICOM /path/to/solution/file C++to submit a solution. Maybe we can use options here.
How about we use typer, instead of argparse?
Originally posted by @sreesh-mallya in https://github.com/sk364/codechef-cli/issues/51#issuecomment-675271293
@sreesh-mallya are you working on this?
@sk364 No not yet but I can take a take it up if you want me to, after I finish the other one.
@sk364 I've started work on this issue. I'll create a PR with both the response styling and the subcommands together.
@sreesh-mallya can I work on this too? (If using typer)