@cimplify/cli 0.2.6 → 0.2.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-GJCVMLSU.mjs → chunk-52GZ5B77.mjs} +1 -1
- package/dist/{chunk-2Y4JWLPE.mjs → chunk-KPGRCXQY.mjs} +3 -3
- package/dist/{deploy-M37L5P6H.mjs → deploy-6KVOROT3.mjs} +2 -2
- package/dist/dispatcher.mjs +8 -8
- package/dist/{projects-IHDG76PK.mjs → projects-5CJOZ3MT.mjs} +1 -1
- package/dist/{repo-XMMLZHLC.mjs → repo-E6SBKVDG.mjs} +1 -1
- package/dist/{update-SDU66352.mjs → update-LFTHO6Q5.mjs} +1 -1
- package/package.json +1 -1
|
@@ -147,7 +147,7 @@ async function connectRepo(client, businessId, projectId, args) {
|
|
|
147
147
|
if (provider === REPO_PROVIDER.FREESTYLE) {
|
|
148
148
|
throw new CliError(
|
|
149
149
|
CLI_ERROR_CODE.INVALID_INPUT,
|
|
150
|
-
"
|
|
150
|
+
"That URL points at Cimplify's managed Git host \u2014 use `cimplify repo provision` instead."
|
|
151
151
|
);
|
|
152
152
|
}
|
|
153
153
|
const body = {
|
|
@@ -163,7 +163,7 @@ async function connectRepo(client, businessId, projectId, args) {
|
|
|
163
163
|
async function repoInfo(client, businessId, projectId) {
|
|
164
164
|
const repo = await client.get(repoEndpoint(businessId, projectId));
|
|
165
165
|
if (!repo) {
|
|
166
|
-
info(dim("No repo attached. Run `cimplify repo provision` to mint a
|
|
166
|
+
info(dim("No repo attached. Run `cimplify repo provision` to mint a managed Git repo,"));
|
|
167
167
|
info(dim("or `cimplify repo connect <url>` to link an existing remote."));
|
|
168
168
|
result({ repo: null });
|
|
169
169
|
return;
|
|
@@ -175,7 +175,7 @@ async function unlinkRepo(client, businessId, projectId, args) {
|
|
|
175
175
|
const purge = flagBool(args, FLAG_PURGE);
|
|
176
176
|
const skipPrompt = flagBool(args, FLAG_YES);
|
|
177
177
|
if (!skipPrompt) {
|
|
178
|
-
const message = purge ? "Unlink and DELETE the upstream
|
|
178
|
+
const message = purge ? "Unlink and DELETE the upstream managed repo? This cannot be undone." : "Unlink the repo from this project? (Upstream repo will be preserved.)";
|
|
179
179
|
const proceed = await promptYesNo(message, false);
|
|
180
180
|
if (!proceed) {
|
|
181
181
|
throw new CliError(CLI_ERROR_CODE.ABORTED, "Aborted by user.");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { pollDeployment } from './chunk-JOUXICGV.mjs';
|
|
3
|
-
import { fetchCloneToken } from './chunk-
|
|
3
|
+
import { fetchCloneToken } from './chunk-KPGRCXQY.mjs';
|
|
4
4
|
import { promptYesNo } from './chunk-L6474RPL.mjs';
|
|
5
5
|
import { TOKEN_PURPOSE, ENV_SCOPE, DEPLOY_TRIGGER, DEPLOYMENT_STATUS } from './chunk-MXYUAJEW.mjs';
|
|
6
6
|
import { parseArgs, flagBool, flagString } from './chunk-4SBJVRGM.mjs';
|
|
@@ -123,7 +123,7 @@ async function run(argv) {
|
|
|
123
123
|
if (!flagBool(args, FLAG_NO_PUSH)) {
|
|
124
124
|
const originUrl = await gitGetRemoteUrl(root);
|
|
125
125
|
if (isFreestyleRemote(originUrl)) {
|
|
126
|
-
step(`Pushing ${branch}
|
|
126
|
+
step(`Pushing ${branch} (managed remote \u2014 minting short-TTL clone token)`);
|
|
127
127
|
const token = await fetchCloneToken(
|
|
128
128
|
client,
|
|
129
129
|
link.businessId,
|
package/dist/dispatcher.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { package_default } from './chunk-
|
|
2
|
+
import { package_default } from './chunk-52GZ5B77.mjs';
|
|
3
3
|
import { TEMPLATES } from './chunk-G2P6KHM5.mjs';
|
|
4
4
|
|
|
5
5
|
// src/dispatcher.ts
|
|
@@ -40,14 +40,14 @@ Components (eject from @cimplify/sdk's registry):
|
|
|
40
40
|
cimplify add --all [--dir <path>] Eject the entire registry at once
|
|
41
41
|
|
|
42
42
|
Repo:
|
|
43
|
-
cimplify repo provision Mint a
|
|
43
|
+
cimplify repo provision Mint a managed Git repo for the linked project
|
|
44
44
|
cimplify repo connect <url> [--provider=\u2026] Connect an existing remote (GitHub, Gitea, external)
|
|
45
45
|
cimplify repo info Show the linked project's repo metadata
|
|
46
46
|
cimplify repo unlink [--purge] [--yes] Unlink the repo (use --purge to also delete upstream)
|
|
47
47
|
cimplify repo rotate-token Rotate the access token (alias of provision)
|
|
48
48
|
cimplify repo clone-url Mint a short-lived auth-embedded clone URL (stdout)
|
|
49
49
|
|
|
50
|
-
Note: \`cimplify projects create <name>\` auto-provisions a
|
|
50
|
+
Note: \`cimplify projects create <name>\` auto-provisions a managed Git repo unless --no-repo is passed.
|
|
51
51
|
Use --connect <url> on create to attach an existing remote instead.
|
|
52
52
|
|
|
53
53
|
Domains:
|
|
@@ -118,21 +118,21 @@ var COMMANDS = {
|
|
|
118
118
|
login: () => import('./login-RSKGT6GU.mjs'),
|
|
119
119
|
logout: () => import('./logout-ZFZLSJ32.mjs'),
|
|
120
120
|
whoami: () => import('./whoami-DIJZYZIN.mjs'),
|
|
121
|
-
projects: () => import('./projects-
|
|
121
|
+
projects: () => import('./projects-5CJOZ3MT.mjs'),
|
|
122
122
|
link: () => import('./link-P4K2HRXY.mjs'),
|
|
123
123
|
unlink: () => import('./unlink-5ABCT7B6.mjs'),
|
|
124
|
-
deploy: () => import('./deploy-
|
|
124
|
+
deploy: () => import('./deploy-6KVOROT3.mjs'),
|
|
125
125
|
rollback: () => import('./rollback-36O4NOEL.mjs'),
|
|
126
126
|
env: () => import('./env-FDBPGU3W.mjs'),
|
|
127
127
|
domains: () => import('./domains-2ZQ7AG27.mjs'),
|
|
128
128
|
logs: () => import('./logs-E2AGTDCF.mjs'),
|
|
129
129
|
status: () => import('./status-6AT4HF63.mjs'),
|
|
130
130
|
dev: () => import('./dev-AQP6TMYK.mjs'),
|
|
131
|
-
repo: () => import('./repo-
|
|
131
|
+
repo: () => import('./repo-E6SBKVDG.mjs'),
|
|
132
132
|
list: () => import('./list-FL6JZ6A4.mjs'),
|
|
133
133
|
add: () => import('./add-7N2EZR6W.mjs'),
|
|
134
|
-
update: () => import('./update-
|
|
135
|
-
upgrade: () => import('./update-
|
|
134
|
+
update: () => import('./update-LFTHO6Q5.mjs'),
|
|
135
|
+
upgrade: () => import('./update-LFTHO6Q5.mjs')
|
|
136
136
|
};
|
|
137
137
|
var GLOBAL_FLAGS = /* @__PURE__ */ new Set(["--json", "--yes", "-y"]);
|
|
138
138
|
function extractGlobalFlags(argv) {
|
|
@@ -124,7 +124,7 @@ async function createProject(client, businessId, name, options = {}) {
|
|
|
124
124
|
if (provider === REPO_PROVIDER.FREESTYLE) {
|
|
125
125
|
throw new CliError(
|
|
126
126
|
CLI_ERROR_CODE.INVALID_INPUT,
|
|
127
|
-
"
|
|
127
|
+
"That URL points at Cimplify's managed Git host \u2014 managed repos are provisioned, not connected. Use `cimplify repo provision` instead."
|
|
128
128
|
);
|
|
129
129
|
}
|
|
130
130
|
const repoBody = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { package_default } from './chunk-
|
|
2
|
+
import { package_default } from './chunk-52GZ5B77.mjs';
|
|
3
3
|
import { promptYesNo } from './chunk-L6474RPL.mjs';
|
|
4
4
|
import { parseArgs, flagBool, flagString } from './chunk-4SBJVRGM.mjs';
|
|
5
5
|
import { success, bold, info, dim, result, failure, CliError, CLI_ERROR_CODE, step, isJsonMode } from './chunk-NZ4RG62Z.mjs';
|