-
Notifications
You must be signed in to change notification settings - Fork 0
Imporved cli instructions and a feat to take ssh passphrase if any #1
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
base: main
Are you sure you want to change the base?
Conversation
|
| if strings.Contains(err.Error(), ".ssh: no such file or directory") { | ||
| return &SSHKeys{dir: "", keys: nil} | ||
| } | ||
| panic(err) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should just log this as error and return &SSHKeys{keys:[]string{}}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah this gets logged to the cli we already have that logic in cli.go file
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
here is how it works now @euforia
initially we had template create cmd as
jumpstart -t [template name] {project name}but on the other hand we have the concept of sub commands as well likejumpstart template listso I thought of a different approach to make command more declarative by going with optionjumpstart create -t [template name ] {project name}when we create a ssh key for github ir prompts user to enter a phassphrase to encrypt the RSA key. previously it was hardcoded in the code now we are taking that input from the user on line no 112 to 114 in cli.go file
if .ssh folder does not exist in home directory we are not going for a panic now instead we return an empty instance of SSHKeys so that user knows that github ssh is not setup and he need to do it .