-
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
661d0a3
to
b16f839
Compare
cli/cmd/aeon.go
Outdated
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.
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.
Thanks, I corrected it.
cli/cmd/aeon.go
Outdated
|
||
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.
Done
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?
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.
- Let's change the interface a bit, see the comment below.
- Let's add parsing of TLS options from an instance configuration.
advertise:
params:
transport: 'ssl'
ssl_key_file: 'foo'
...
- We need tests for new functionality.
b16f839
to
9f4d3e9
Compare
Closes #TNTP-1073
9f4d3e9
to
1726dea
Compare
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.
- Let's add parsing of TLS options from an instance configuration.
advertise:
params:
transport: 'ssl'
ssl_key_file: 'foo'
...
- We need tests for new functionality.
cli/cmd/aeon.go
Outdated
tt aeon connect unix://<socket-path>`, | ||
tt aeon connect localhost:50051 | ||
tt aeon connect unix://<socket-path> | ||
tt aeon connect /path/to/config INSTANCE_NAME>`, |
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 /path/to/config INSTANCE_NAME>`, | |
tt aeon connect /path/to/config INSTANCE_NAME>`, |
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.
Done
cli/cmd/aeon.go
Outdated
@@ -26,11 +30,12 @@ var connectCtx = aeoncmd.ConnectCtx{ | |||
|
|||
func newAeonConnectCmd() *cobra.Command { | |||
var aeonCmd = &cobra.Command{ | |||
Use: "connect URI", | |||
Use: "connect URI or connect PATH instance", |
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.
Use: "connect URI or connect PATH instance", | |
Use: "tt aeon connect [ URI | /path/to/config INSTANCE_NAME ] [flags]", |
Maybe something like this?
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.
It looks very good, thank you.
aeon: added the ability to connect from the config
Closes #TNTP-1073