Skip to content

Select different sessions for same user #81

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

Closed
pengyu-hou opened this issue Dec 31, 2017 · 7 comments
Closed

Select different sessions for same user #81

pengyu-hou opened this issue Dec 31, 2017 · 7 comments

Comments

@pengyu-hou
Copy link

pengyu-hou commented Dec 31, 2017

Can we support switching sessions in the cli? Thanks

skygragon added a commit that referenced this issue Jan 5, 2018
Signed-off-by: Eric Wang <[email protected]>
skygragon added a commit that referenced this issue Jan 5, 2018
@pengyu-hou
Copy link
Author

@skygragon Thanks for the quick turnaround. Can you show us how to switch sessions? Is it under user or somewhere else?

@skygragon
Copy link
Owner

$ npm install -g leetcode-cli
$ leetcode session -h

@better365 please let me know if there are bugs out there.

@pengyu-hou
Copy link
Author

@skygragon I just tried it today. It works fine. It will be more straightforward to change the description a little bit. Thanks!

leetcode session -e xxx Enable session by keyword Id
leetcode session -d xxx Delete session by keyword Id

@skygragon
Copy link
Owner

@better365 here keyword could be session id or session name, usually the session id is hard to remember thus we can give each session a meaningful name and use it directly in the command.

@pengyu-hou
Copy link
Author

pengyu-hou commented Jan 10, 2018

@skygragon Thanks for your clarification. Maybe because my session are just numbers like 2017 or 2018, it doesn't work by name.

What I tried is first leecode session to get the session ID then use leetcode seesion -e session_id

Anyhow, thanks for the great work. 谢谢!!!

skygragon added a commit that referenced this issue Jan 11, 2018
@skygragon
Copy link
Owner

@better365 yeah, thanks for helping find this bug! feel free to try my fresh fix here:

$ npm install -g skygragon/leetcode-cli

@pengyu-hou
Copy link
Author

@skygragon 刚刚测试了一下,没有问题,名字 和id都可以了,谢谢!

15cm pushed a commit to 15cm/leetcode-cli that referenced this issue Jun 13, 2018
15cm pushed a commit to 15cm/leetcode-cli that referenced this issue Jun 13, 2018
15cm pushed a commit to 15cm/leetcode-cli that referenced this issue Jun 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants