codechef-cli icon indicating copy to clipboard operation
codechef-cli copied to clipboard

Using subcommands instead of using options

Open sreesh-mallya opened this issue 5 years ago • 4 comments

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 login to login
  • codechefcli problem WEICOM to get the problem description
  • codechefcli problem --level easy or codechefcli problem --search easy to search for problems based on difficulty
  • codechefcli contests to 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 avatar Aug 19 '20 11:08 sreesh-mallya

@sreesh-mallya are you working on this?

sk364 avatar Aug 26 '20 19:08 sk364

@sk364 No not yet but I can take a take it up if you want me to, after I finish the other one.

sreesh-mallya avatar Aug 27 '20 06:08 sreesh-mallya

@sk364 I've started work on this issue. I'll create a PR with both the response styling and the subcommands together.

sreesh-mallya avatar Aug 29 '20 04:08 sreesh-mallya

@sreesh-mallya can I work on this too? (If using typer)

pybash1 avatar Oct 18 '21 09:10 pybash1