Skip to content

Add config command #10

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

Merged
merged 3 commits into from
Jul 21, 2021
Merged

Add config command #10

merged 3 commits into from
Jul 21, 2021

Conversation

polldo
Copy link
Contributor

@polldo polldo commented Jul 21, 2021

iot-cloud-cli should be configured before being used. In particular a client ID and the corresponding secret ID should be set.
The config command is used to configure these two important parameters.
It accepts either :

  • two flags: -c and -s for configuring respectively the client id and the secret id
  • a configuration file in yaml format containing the two parameters

Also, the internal packages of iot-cloud-cli can retrieve this configuration by using the Retrieve function of the internal/config package.

polldo added 3 commits July 21, 2021 19:11
- Use config as an internal package
- Add significative comments
- Change error message format
@polldo polldo merged commit e173453 into main Jul 21, 2021
@polldo polldo deleted the polldo/config-command branch July 21, 2021 17:19
polldo pushed a commit that referenced this pull request Sep 2, 2022
iot-cloud-cli should be configured before being used. In particular a client ID and the corresponding secret ID should be set.
The config command is used to configure these two important parameters.
It accepts either :

    two flags: -c and -s for configuring respectively the client id and the secret id
    a configuration file in yaml format containing the two parameters

Also, the internal packages of iot-cloud-cli can retrieve this configuration by using the Retrieve function of the internal/config package.

* Add config command

* Restructure config into internal package

- Use config as an internal package
- Add significative comments
- Change error message format

* Split config in cli and command
polldo pushed a commit that referenced this pull request Sep 2, 2022
iot-cloud-cli should be configured before being used. In particular a client ID and the corresponding secret ID should be set.
The config command is used to configure these two important parameters.
It accepts either :

    two flags: -c and -s for configuring respectively the client id and the secret id
    a configuration file in yaml format containing the two parameters

Also, the internal packages of iot-cloud-cli can retrieve this configuration by using the Retrieve function of the internal/config package.

* Add config command

* Restructure config into internal package

- Use config as an internal package
- Add significative comments
- Change error message format

* Split config in cli and command
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.

1 participant