Skip to content

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