Skip to content
This repository has been archived by the owner on Aug 8, 2024. It is now read-only.

Variables: added property aggrandizement #111

Merged
merged 4 commits into from
Feb 14, 2019

Conversation

xAlien95
Copy link
Contributor

Checks

  • I've checked there are no linting errors.
  • I've checked the code is still at 100% test coverage.

Added Actions (if relevant)

  • None

Are you happy to be listed as a contributor on Shortcuts.fun?

Yes

Any other information / comments

This pull request follows the variables refactoring done in #14 and #47 and adds full support for aggrandizements. Specifically, you can now use the get parameter to access properties of a coerced type:

picsew_3ab4

clipboard.with({
  type: 'App Store app',
  get: 'Store URL',
})

@joshfarrant
Copy link
Owner

Looks fantastic!

@joshfarrant joshfarrant merged commit 5d4f4b7 into joshfarrant:master Feb 14, 2019
@vergenzt
Copy link

vergenzt commented Jul 17, 2024

Just out of curiosity... do you recall how you derived these PropertyUserInfo values? 🙂 I'm working on a bit of Shortcuts scripting myself, and was wondering whether you had some automated means of extracting them or if you uncovered them manually by tapping through the various option and exporting each.

@xAlien95
Copy link
Contributor Author

was wondering whether you had some automated means of extracting them or if you uncovered them manually by tapping through the various option and exporting each.

@vergenzt, the latter. Unfortunately, since 3rd party apps can now integrate their own custom types, there would be no easy way of obtaining all the possible AggrandizementCoercionItemClasses without manually installing those apps. As an example, the Charty app provides a "Charty Data Set" result type with its own accessible properties.

@vergenzt
Copy link

Makes sense. Thanks for the quick response!!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants