github / gh-classroom

GitHub Classroom CLI Extension is a powerful and easy-to-use command line tool that enhances the functionality of the GitHub CLI, specifically tailored for educators using GitHub Classroom.
MIT License
75 stars 12 forks source link

CLI to specify classroom and assignment by name, not ID #56

Closed nuke-web3 closed 5 months ago

nuke-web3 commented 8 months ago

Is your feature request related to a problem? Please describe. I would like to use the CLI tool to operate on a specific assignment without needing to lookup it's ID or use the interactive CLI selector. This is to use the CLI in a non-interactive environment (for me, wrapping this CLI in another tool).

Describe the solution you'd like A CLI command that will do best effort in trying to get an assignment from a string, searching all your classrooms. If there is no unique match, error with possible matches and the string to use them. This would also imply a classroom might need to be passed in as an argument as well, and if present, would restrict matching the assignment name to that classroom only (this classroom identified by a string matcher as well).

Describe alternatives you've considered Multistep manual and interactive process using the CLI to gather the ID of the assignment by hand to pass into the final classroom CLI command (as there is no machine readable output from the classroom CLI).

Additional context Related to #55

colematt commented 6 months ago

Possible duplicate of #3 ?

nixpad commented 5 months ago

Closing as mentioned above, this is a duplicate of https://github.com/github/gh-classroom/issues/3