[ https://issues.apache.org/jira/browse/IGNITE-17110?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17578499#comment-17578499 ]
Kirill Gusakov commented on IGNITE-17110: ----------------------------------------- LGTM > Auto-connect on the REPL start > ------------------------------ > > Key: IGNITE-17110 > URL: https://issues.apache.org/jira/browse/IGNITE-17110 > Project: Ignite > Issue Type: Task > Components: cli > Reporter: Aleksandr > Assignee: Vadim Pakhnushev > Priority: Major > Labels: ignite-3, ignite-3-cli-tool > Time Spent: 20m > Remaining Estimate: 0h > > h2. Description > When a user starts REPL by the {{ignite}} command they get > {{{}[disconnected]{}}}> prompt by default. Even if the user already connected > to the cluster node in the previous session. > h2. To-Do > Implement the auto-connect logic for the case described below. The URL for > the connect command can be taken from the defaults. If the user previously > connected to the URL that differs from the default one then suggest using the > last URL as a default. > {code:bash} > $ ignite > > connect to http://host.from.previous.session:10300 ? # this is asked only > > if the default url is not possible to connect > > yes > [http://host.from.previous.session:10300]> would you like to use > http://host.from.previous.session:10300 as the default URL? > [http://host.from.previous.session:10300]> no > [http://host.from.previous.session:10300]> {code} > -- This message was sent by Atlassian Jira (v8.20.10#820010)