-
Notifications
You must be signed in to change notification settings - Fork 0
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
REM-1366: Integrate configuration file reading to the commands #21
REM-1366: Integrate configuration file reading to the commands #21
Conversation
…tegrate-config-file-reading-to-commands
Codecov Report
@@ Coverage Diff @@
## develop #21 +/- ##
===========================================
- Coverage 95.45% 95.03% -0.43%
===========================================
Files 10 10
Lines 154 161 +7
===========================================
+ Hits 147 153 +6
- Misses 7 8 +1
Continue to review full report at Codecov.
|
…tegrate-config-file-reading-to-commands
f51d2b5
to
6d5bed5
Compare
…tegrate-config-file-reading-to-commands
…tegrate-config-file-reading-to-commands
6d5bed5
to
542c4f0
Compare
@@ -44,8 +44,12 @@ def read(self, name): | |||
|
|||
Return dictionary. | |||
""" | |||
with open(self.path + '/.' + name + '.yml') as config_file: | |||
return yaml.safe_load(config_file) | |||
try: |
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 dictionary
> Return dictionary if configurations are presented, else None.
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.
@dmytrostriletskyi, done.
…tegrate-config-file-reading-to-commands
eae70f2
to
a33e93d
Compare
Jira references
Description
Using the command line interface, you will have an option to declare the
node URL
to send commands to as illustrated below:You shouldn't declare
node URL
every time when you execute a command, use configuration file instead. Configuration file is required to be named.remme-core-cli.yml
and located in the home directory (~/
).The configuration file have an optional section to declare
node URL
to send commands to:Try it out by downloading the example of the configuration file to the home directory.
The
node URL
will be read every time from the configuration file (.remme-core-cli.yml
) unless you provide it in the command line interface:If you do not provide the
node URL
neither in the command line interface nor in the configuration file,node URL
will be equal tolocalhost
by default.