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

fix: user can check --help even without valid URI #5

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

laysauchoa
Copy link
Contributor

@laysauchoa laysauchoa commented Jun 23, 2022

To create a client to make operations, we need
a valid service URI.
Before an invalid service URI exits the program
and show a message for the user to fix the URI.

This way, the user can not see the help command
information from the CLI itself even before deci-
ding to use.

I am creating the client at function level.

Creating a client for every function call is
not the right approach. But for a purpose demo,
seems reasonable.

This way the user can check the --help function
before deciding to use the tool.

Fixes #4

To create a client to make operations, we need
a valid service URI.
Before an invalid service URI exits the program
and show a message for the user to fix the URI.

This way, the user can not see the help command
information from the CLI itself even before deci-
ding to use.

I am creating the client at function level.

Creating a client for every function call is
not the right approach. But for a purpose demo,
seems reasonable.

This way the user can check the --help function
before deciding to use the tool.
@laysauchoa laysauchoa requested a review from TibsAtWork June 23, 2022 08:11
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.

Allow --help without needing a connection to OpenSearch
1 participant