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

aeon: added the ability to connect from the config #1094

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

AlexandrLitkevich
Copy link

@AlexandrLitkevich AlexandrLitkevich commented Jan 31, 2025

aeon: added the ability to connect from the config

Closes #TNTP-1073

@AlexandrLitkevich AlexandrLitkevich changed the title aeon:added the ability to connect from the config Closes #TNTP-1073 aeon: added the ability to connect from the config Closes #TNTP-1073 Jan 31, 2025
@AlexandrLitkevich AlexandrLitkevich changed the title aeon: added the ability to connect from the config Closes #TNTP-1073 aeon: added the ability to connect from the config Feb 1, 2025
@AlexandrLitkevich AlexandrLitkevich force-pushed the TNTP-1073 branch 2 times, most recently from 47a20b7 to ec98a99 Compare February 1, 2025 17:41
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>`,
Copy link
Contributor

@patapenka-alexey patapenka-alexey Feb 3, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
return fmt.Errorf("it is impossible to result in a string")
return errors.New("it is impossible to cast result in a string")

Copy link
Contributor

@patapenka-alexey patapenka-alexey left a 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?

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

Successfully merging this pull request may close these issues.

2 participants