-
-
Notifications
You must be signed in to change notification settings - Fork 361
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
nextercism: implement workspace command #413
Comments
@exercism/windows on Linux/MacOS you can say
or
To change directory to the exercism workspace. How would you do this on Windows? |
|
Being able to give a Powershell command would be grand, thanks! |
An environment variable may be used perhaps?
You may change to that directory like so in cmd:
As far as PS goes I'm no expert. A quick search did yield this which I hope is helpful. Is this sort of what you are asking? |
Yepp, something like that. The basic idea is to give people an easy way to get to their workspace, without having to type (or remember) long paths.
An env variable is another way of doing this (as are aliases). I'm hoping to find a really nice and easy way to use the |
So if I am understanding the intent of
|
@rpottsoh I don't think that is possible, since the command If this isn't a common idiom on Windows, then it might not be worth contorting ourselves to make it so :) |
Its not a common idiom among windows users that still do not use powershell but stick to “Composition” of commands seems to be done in powershell quite often, though before googling around I've only seen piping. For windows we will have at least one problem though. The working dir is per drive and shell session. So when we are on drive |
On Powershell you can do |
Thanks for your help figuring out the Windows thing, everyone! I've documented with some caveats in the usage for the command. Closed by #448 |
To be merged into the nextercism branch in #410
Command name:
workspace
(aliasw
).File:
cmd/workspace.go
.This outputs the path to the user's workspace directory.
To get this value, load up a
config.NewUserConfig()
, which has aWorkspace
field.The text was updated successfully, but these errors were encountered: