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

add outputs command to read outputs #25

Closed
blake-mealey opened this issue Nov 8, 2021 · 2 comments
Closed

add outputs command to read outputs #25

blake-mealey opened this issue Nov 8, 2021 · 2 comments
Labels
enhancement New feature or request

Comments

@blake-mealey
Copy link
Owner

Use case: I want to know the IDs of my developer products/assets/etc for use in game.

Add a rocat outputs [--query <json-query>] [--output <file-path>] to print out a JSON object of the state file's outputs.

Additional use case: I want to automatically digest the IDs in my game with Rojo. Solution: output the data to a JSON file which can be imported into Roblox with Rojo. Need to think about the nicest way to accomplish this with Rojo's current importing methods.

@blake-mealey blake-mealey added the enhancement New feature or request label Nov 8, 2021
@blake-mealey
Copy link
Owner Author

blake-mealey commented Nov 8, 2021

Note this creates a bit of a chicken and the egg problem. We want Rocat to upload the assets and output their IDs, then we want Rojo to build the file, then we want Rocat to upload the changed file. This would require two separate Rocat deploys.

Maybe we should consider separating place file deployments from infra-as-code? (e.g. rocat apply and rocat deploy which could share a state file and utilize the same resource management, but construct different graphs based on the config file)

@blake-mealey blake-mealey changed the title add output command to read outputs add outputs command to read outputs Nov 8, 2021
@blake-mealey
Copy link
Owner Author

Closed in #29, but the discussion of making it Rojo-compatible has been moved to #34

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant