Skip to content

Conversation

@rossiam
Copy link
Collaborator

@rossiam rossiam commented Sep 7, 2022

  • added withLocation to add location to a single item (matches/uses withLocations which does the same for a list)
  • support verbose flag for installedapps and installedschema commands with single item
  • added tests for installedschema command
  • removed InstalledAppWithLocation and InstalledSchemaAppWithLocation in favor of WithNamedLocation

Checklist

  • I have read the CONTRIBUTING document
  • Any required documentation has been added
  • My code follows the code style of this project (npm run lint produces no warnings/errors)
  • I have added tests to cover my changes

@changeset-bot
Copy link

changeset-bot bot commented Sep 7, 2022

🦋 Changeset detected

Latest commit: c1e8bef

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@smartthings/cli Patch
@smartthings/cli-lib Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Comment on lines +46 to 49
config.listTableFieldDefinitions = [...listTableFieldDefinitions]
config.listTableFieldDefinitions.splice(3, 0, 'locationId', 'location')
config.tableFieldDefinitions = [...tableFieldDefinitions]
config.tableFieldDefinitions.splice(5, 0, 'location')
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The reason I'm duplicating the arrays here before splicing is so we don't modify the original array which breaks unit tests. It might be cleaner to change the arrays in the util class to functions that return the array (as a fresh copy each time) but I figured this is good enough for now.

@rossiam rossiam merged commit 594b5c7 into SmartThingsCommunity:master Sep 8, 2022
@rossiam rossiam deleted the verbose-apps branch September 8, 2022 20:24
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