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

tsh logout deletes the profile link #2546

Closed
kontsevoy opened this issue Feb 6, 2019 · 0 comments
Closed

tsh logout deletes the profile link #2546

kontsevoy opened this issue Feb 6, 2019 · 0 comments

Comments

@kontsevoy
Copy link
Contributor

kontsevoy commented Feb 6, 2019

Introduction

tsh login --proxy=a would create a profile file for the proxy a and save it as ~/.tsh/a.yaml. The idea here is that a user can edit that file to avoid typing CLI flags in the future. In other words, if a profile exists I should be able to simply:

$ tsh login

... and it should pick up the proxy server parameters from a profile file.

Problem

tsh logout currently deletes the ~/.tsh/profile symlink, i.e. you MUST type the full-spec login command again, partially defeating the purpose of having profile files.

Example

Here's how it's supposed to work:

# login into proxy.example.com with custom ports 32,31 and 11 and select cluster-2
$ tsh login --proxy=proxy.example.com:32,31,11 cluster-2

# remove my certs from ~/.tsh/keys and ssh-agent
$ tsh logout

# Same as tsh login --proxy=proxy.example.com:32,31,11 cluster-2
$ tsh login
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant