Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add present working course command #4

Open
rowdyrotifer opened this issue Oct 13, 2018 · 0 comments
Open

Add present working course command #4

rowdyrotifer opened this issue Oct 13, 2018 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@rowdyrotifer
Copy link
Owner

In the Clanvas shell, the default prompt adds functionality parallel to what most shells have with the cd (change directory) command. Clanvas has a cc (change class) command, which then implicitly passes that course to all the command that require a course to be specified (for example, lg (list grades) can be called after a cc call, or one can use the -c option to specify a course explicitly or a course other than the current one).

Add a pwc (present working class) command (analogous to the pwd (present working directory) command) that outputs information about the class that is currently selected with cc.

Now, there is a bit more information about courses than there is about directories, so I imagine the command would be a bit more complex than the pwd command, here is how I imagine some example output:

Command: pwc

EECS455-13682

Command: pwc -l

Name: Applied Graph Theory (100/10395)
Course code: EECS 455
Term: Fall 2018
Course id: 13682

If no course has been selected, something like the following would make sense.

Command: pwc

No course selected. Use cc to select a course.
@rowdyrotifer rowdyrotifer added enhancement New feature or request help wanted Extra attention is needed good first issue Good for newcomers labels Oct 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant