Skip to content

Add dashboard list command #45

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 8 commits into from
Oct 12, 2021
Merged

Add dashboard list command #45

merged 8 commits into from
Oct 12, 2021

Conversation

polldo
Copy link
Contributor

@polldo polldo commented Oct 11, 2021

Motivation

arduino-cloud-cli should allow users to retrieve information about dashboards

Change description

  • add a DashboardList method in iot package
  • add a new dashboard subcommand
  • add a dashboard list command

Additional Notes

command:
./arduino-cloud-cli dashboard list --show-widgets
There is a minor difference in results printed as text w.r.t results printed in json/yaml formats:
by default the resulting dashboard details printed out as text contain only these fields: name, id, updatedAt.
On the other hand, other formats include also: widgets
In order to print out in text also the details about the widgets, the --show-widgets flag should be inserted in the command.
The reason for hiding some information in text format is to reduce the resulting lines length in the terminal

Reviewer checklist

  • PR address a single concern.
  • PR title and description are properly filled.
  • Changes will be merged in main.
  • Changes are covered by tests.
  • Logging is meaningful in case of troubleshooting.
  • History is clean, commit messages are meaningful (see CONTRIBUTING.md) and are well formatted.

@polldo polldo requested a review from eclipse1985 October 11, 2021 15:03
@polldo polldo merged commit 89f3cd8 into main Oct 12, 2021
@polldo polldo deleted the polldo/dashboard-list branch October 12, 2021 08:15
polldo pushed a commit that referenced this pull request Sep 2, 2022
command to retrieve information about dashboards:
'arduino-cloud-cli dashboard list --show-widgets'
widgets are printed out (in text format) only if '--show-widgets' flag is passed. When showed, widgets are grouped in 3 widgets per row.


* Update iot-clients-go version

* Add dashboard list command

* Update readme

* Fix - print UpdatedAt string

* Limit number of widgets per row

* Add flag to show widgets

* Remove share details

* Update readme
polldo pushed a commit that referenced this pull request Sep 2, 2022
command to retrieve information about dashboards:
'arduino-cloud-cli dashboard list --show-widgets'
widgets are printed out (in text format) only if '--show-widgets' flag is passed. When showed, widgets are grouped in 3 widgets per row.


* Update iot-clients-go version

* Add dashboard list command

* Update readme

* Fix - print UpdatedAt string

* Limit number of widgets per row

* Add flag to show widgets

* Remove share details

* Update readme
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.

2 participants