-
Notifications
You must be signed in to change notification settings - Fork 12
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
aeon: added the ability to connect from the config #1094
base: master
Are you sure you want to change the base?
Conversation
26df615
to
5a3a88e
Compare
47a20b7
to
ec98a99
Compare
Closes #TNTP-1073
661d0a3
to
b16f839
Compare
func newAeonConnectCmd() *cobra.Command { | ||
var aeonCmd = &cobra.Command{ | ||
Use: "connect URI", | ||
Short: "Connect to the aeon instance", | ||
Long: `Connect to the aeon instance. | ||
tt aeon connect localhost:50051 | ||
tt aeon connect unix://<socket-path>`, | ||
tt aeon connect unix://<socket-path> | ||
tt aeon connect -c path instanceName>`, |
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.
tt aeon connect -c path instanceName>`, | |
tt aeon connect -c /path/to/config -i INSTANCE_NAME`, |
To correlate with tt connect/play
help style.
|
||
us, ok := uri.(string) | ||
if !ok { | ||
return fmt.Errorf("it is impossible to result in a 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.
return fmt.Errorf("it is impossible to result in a string") | |
return errors.New("it is impossible to cast result in a 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.
Thank you for the patch. Could you please add an Changelog entry?
aeon: added the ability to connect from the config
Closes #TNTP-1073