-
Notifications
You must be signed in to change notification settings - Fork 2
[Feat] Add Targets #65
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
Open
Open
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
21d48ca
tidy link cloud and shared instance resolution
bean1352 4227cb2
add cli.yaml environments to instance resolution
bean1352 fa95b59
link cloud --environment, fetch instances output and docs
bean1352 7e0ca43
suggest environments when no link is selected
bean1352 ade7475
note older CLI versions ignore environments in docs
bean1352 5d6c0b8
harden environment resolution and add coverage
bean1352 ebfd1a1
update docs and regenerate readme for environments
bean1352 4c760e4
suggest pull instance when a linked directory has no service.yaml
bean1352 f3434f8
final polish for environments stack
bean1352 961c275
accept options object in createEnvironmentFlag
bean1352 980b6a0
rename environments to targets and tidy up
bean1352 2705c16
remove cli version note from targets docs
bean1352 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| --- | ||
| '@powersync/cli-schemas': minor | ||
| '@powersync/cli-core': minor | ||
| 'powersync': minor | ||
| --- | ||
|
|
||
| Added named targets to `cli.yaml`. Link several Cloud instances from one project directory with `powersync link cloud --target=<name> --instance-id=<id>`, then pick one per command with `--target=<name>` or the `POWERSYNC_TARGET` variable. The top-level `instance_id`, `org_id` and `project_id` fields remain the default target. | ||
|
|
||
| - `powersync fetch instances` lists the targets of each linked directory. | ||
| - Commands that work with both Cloud and self-hosted instances now let `--instance-id` or `--api-url` decide the context, even when `cli.yaml` is linked to the other type. | ||
| - When a linked directory has no `service.yaml`, the error now suggests `powersync pull instance`. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -150,3 +150,4 @@ playground/ | |
|
|
||
| # IDE | ||
| .idea | ||
|
|
||
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.