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

iot: update samples for yargs v14.0.0 #1463

Merged
merged 1 commit into from
Sep 4, 2019
Merged

iot: update samples for yargs v14.0.0 #1463

merged 1 commit into from
Sep 4, 2019

Conversation

hongalex
Copy link
Contributor

@hongalex hongalex commented Sep 3, 2019

This fixes some issues with upgrading to yargs v14.0.0:

  1. Positional arguments were removed from createGateway sample. This is more in line with other samples, and will require migrating other samples to a similar format. For the sake of unblocking Update dependency yargs to v14 #1454, this is the only sample changed for now.
  2. Use a single non-whitespaced string for sendCommand sample, such that yargs does not interpret the command sting as multiple arguments.

This change also updates the gateway samples + tests such that includes specifying [gateway auth method] (https://cloud.google.com/iot/docs/reference/cloudiot/rest/v1/projects.locations.registries.devices#gatewayauthmethod) which was previously missing.

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Sep 3, 2019
@hongalex hongalex mentioned this pull request Sep 3, 2019
1 task
@fhinkel fhinkel merged commit f750195 into master Sep 4, 2019
@fhinkel fhinkel deleted the iot-yargs-fix branch September 4, 2019 16:44
This was referenced Sep 15, 2021
This was referenced Sep 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants