@bifos/nhncloud-cli 0.16.0 → 0.17.0
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/index.js
CHANGED
|
@@ -24,7 +24,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
24
24
|
));
|
|
25
25
|
|
|
26
26
|
// src/index.ts
|
|
27
|
-
var
|
|
27
|
+
var import_commander60 = require("commander");
|
|
28
28
|
var import_chalk18 = __toESM(require("chalk"));
|
|
29
29
|
|
|
30
30
|
// src/utils/spinner.ts
|
|
@@ -192,6 +192,24 @@ nhncloud configure \uB97C \uC2E4\uD589\uD574 UAK id/secret \uC744 \uC124\uC815\u
|
|
|
192
192
|
}
|
|
193
193
|
return uak;
|
|
194
194
|
}
|
|
195
|
+
async function getProfileEnvironment(profileName, allowMissing = false) {
|
|
196
|
+
const credentials = allowMissing ? await loadCredentialsOrEmpty() : await loadCredentials();
|
|
197
|
+
const profile = credentials.profiles[profileName];
|
|
198
|
+
if (!profile) {
|
|
199
|
+
if (allowMissing) return "real";
|
|
200
|
+
throw new NhnCloudCliError(`profile "${profileName}" \uC744 \uCC3E\uC744 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.`, EXIT_CONFIG_ERROR);
|
|
201
|
+
}
|
|
202
|
+
const environment = profile.environment;
|
|
203
|
+
if (environment !== void 0 && environment !== "gov") {
|
|
204
|
+
throw new NhnCloudCliError(`profile "${profileName}" \uC758 environment \uB294 gov \uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4. \uC77C\uBC18\uB9DD\uC740 \uC774 \uD544\uB4DC\uB97C \uC0DD\uB7B5\uD558\uC138\uC694.`, EXIT_CONFIG_ERROR);
|
|
205
|
+
}
|
|
206
|
+
return environment ?? "real";
|
|
207
|
+
}
|
|
208
|
+
async function requireRealEnvironment(profileName, service) {
|
|
209
|
+
if (await getProfileEnvironment(profileName) === "gov") {
|
|
210
|
+
throw new NhnCloudCliError(`${service}\uC758 \uACF5\uACF5\uB9DD API endpoint\uB294 \uC544\uC9C1 \uC9C0\uC6D0\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.`, EXIT_CONFIG_ERROR);
|
|
211
|
+
}
|
|
212
|
+
}
|
|
195
213
|
async function getServiceCredential(service, profileName) {
|
|
196
214
|
const cred = await getOptionalServiceCredential(service, profileName);
|
|
197
215
|
if (!cred) {
|
|
@@ -205,7 +223,7 @@ ${CREDENTIALS_PATH} \uC5D0\uC11C profiles.${profileName}.${service} \uBE14\uB85D
|
|
|
205
223
|
return cred;
|
|
206
224
|
}
|
|
207
225
|
async function getOptionalServiceCredential(service, profileName) {
|
|
208
|
-
if (service === "userAccessKey" || service === "iaas") {
|
|
226
|
+
if (service === "userAccessKey" || service === "iaas" || service === "environment") {
|
|
209
227
|
throw new NhnCloudCliError(
|
|
210
228
|
`"${service}" \uB294 \uC11C\uBE44\uC2A4 \uC790\uACA9\uC99D\uBA85\uC774 \uC544\uB2D9\uB2C8\uB2E4 \u2014 \uC804\uC6A9 getter \uB97C \uC0AC\uC6A9\uD558\uC138\uC694.`,
|
|
211
229
|
EXIT_PARAM_ERROR
|
|
@@ -525,14 +543,17 @@ function toNhnCloudCliError(err) {
|
|
|
525
543
|
}
|
|
526
544
|
|
|
527
545
|
// src/api/oauth.ts
|
|
528
|
-
var OAUTH_ENDPOINT =
|
|
546
|
+
var OAUTH_ENDPOINT = {
|
|
547
|
+
real: "https://oauth.api.nhncloudservice.com/oauth2/token/create",
|
|
548
|
+
gov: "https://oauth.api.gov-nhncloudservice.com/oauth2/token/create"
|
|
549
|
+
};
|
|
529
550
|
function isTokenResponse(val) {
|
|
530
551
|
if (typeof val !== "object" || val === null) return false;
|
|
531
552
|
const obj = val;
|
|
532
553
|
return typeof obj["access_token"] === "string" && typeof obj["expires_in"] === "number";
|
|
533
554
|
}
|
|
534
|
-
async function getAccessToken(profile, uakId, uakSecret, forceRefresh = false) {
|
|
535
|
-
const credentialHash = credentialFingerprint(JSON.stringify([uakId, uakSecret]));
|
|
555
|
+
async function getAccessToken(profile, uakId, uakSecret, forceRefresh = false, environment = "real") {
|
|
556
|
+
const credentialHash = credentialFingerprint(JSON.stringify([environment, uakId, uakSecret]));
|
|
536
557
|
if (!forceRefresh) {
|
|
537
558
|
const cached = await readToken(profile, credentialHash);
|
|
538
559
|
if (cached !== null) {
|
|
@@ -542,7 +563,7 @@ async function getAccessToken(profile, uakId, uakSecret, forceRefresh = false) {
|
|
|
542
563
|
const basicCredential = Buffer.from(`${uakId}:${uakSecret}`).toString("base64");
|
|
543
564
|
let raw;
|
|
544
565
|
try {
|
|
545
|
-
raw = await import_ky2.default.post(OAUTH_ENDPOINT, {
|
|
566
|
+
raw = await import_ky2.default.post(OAUTH_ENDPOINT[environment], {
|
|
546
567
|
headers: {
|
|
547
568
|
Authorization: `Basic ${basicCredential}`,
|
|
548
569
|
"Content-Type": "application/x-www-form-urlencoded"
|
|
@@ -573,18 +594,29 @@ var ENDPOINTS = {
|
|
|
573
594
|
"logncrash-collector": "https://api-logncrash.nhncloudservice.com",
|
|
574
595
|
deploy: "https://api-deploy.nhncloudservice.com"
|
|
575
596
|
};
|
|
576
|
-
|
|
577
|
-
|
|
597
|
+
var GOV_ENDPOINTS = {
|
|
598
|
+
deploy: "https://api-tcd.gov-nhncloudservice.com"
|
|
599
|
+
};
|
|
600
|
+
function endpointFor(service, environment = "real") {
|
|
601
|
+
const endpoints = environment === "gov" ? GOV_ENDPOINTS : ENDPOINTS;
|
|
602
|
+
const endpoint = endpoints[service];
|
|
578
603
|
if (!endpoint) {
|
|
579
604
|
throw new NhnCloudCliError(
|
|
580
|
-
`\uB4F1\uB85D\uB418\uC9C0 \uC54A\uC740 \uC11C\uBE44\uC2A4\uC785\uB2C8\uB2E4: "${service}". \uC9C0\uC6D0 \uC11C\uBE44\uC2A4: ${Object.keys(
|
|
605
|
+
`\uB4F1\uB85D\uB418\uC9C0 \uC54A\uC740 \uC11C\uBE44\uC2A4\uC785\uB2C8\uB2E4: "${service}". \uC9C0\uC6D0 \uC11C\uBE44\uC2A4: ${Object.keys(endpoints).join(", ")}`,
|
|
581
606
|
EXIT_API_ERROR
|
|
582
607
|
);
|
|
583
608
|
}
|
|
584
609
|
return endpoint;
|
|
585
610
|
}
|
|
586
|
-
function keystoneIdentityUrl() {
|
|
587
|
-
return
|
|
611
|
+
function keystoneIdentityUrl(environment = "real") {
|
|
612
|
+
return `https://api-identity-infrastructure.${environment === "gov" ? "gov-" : ""}nhncloudservice.com/v2.0/tokens`;
|
|
613
|
+
}
|
|
614
|
+
var GOV_IAAS_REGIONS = ["kr1", "kr2"];
|
|
615
|
+
function govIaasHost(region, service) {
|
|
616
|
+
if (!GOV_IAAS_REGIONS.includes(region)) {
|
|
617
|
+
throw new NhnCloudCliError(`\uC9C0\uC6D0\uD558\uC9C0 \uC54A\uB294 \uACF5\uACF5\uB9DD IaaS region \uC785\uB2C8\uB2E4: "${region}". \uC0AC\uC6A9 \uAC00\uB2A5\uD55C region: ${GOV_IAAS_REGIONS.join(", ")}`, EXIT_PARAM_ERROR);
|
|
618
|
+
}
|
|
619
|
+
return `${region}-api-${service}-infrastructure.gov-nhncloudservice.com`;
|
|
588
620
|
}
|
|
589
621
|
var INSTANCE_HOST = {
|
|
590
622
|
kr1: "kr1-api-instance-infrastructure.nhncloudservice.com",
|
|
@@ -621,7 +653,11 @@ var NCR_HOST = {
|
|
|
621
653
|
kr2: "kr2-ncr.api.nhncloudservice.com",
|
|
622
654
|
kr3: "kr3-ncr.api.nhncloudservice.com"
|
|
623
655
|
};
|
|
624
|
-
function ncrHost(region) {
|
|
656
|
+
function ncrHost(region, environment = "real") {
|
|
657
|
+
if (environment === "gov") {
|
|
658
|
+
if (region !== "kr1") throw new NhnCloudCliError(`\uC9C0\uC6D0\uD558\uC9C0 \uC54A\uB294 \uACF5\uACF5\uB9DD NCR region \uC785\uB2C8\uB2E4: "${region}". \uC0AC\uC6A9 \uAC00\uB2A5\uD55C region: kr1`, EXIT_PARAM_ERROR);
|
|
659
|
+
return "kr1-ncr.api.gov-nhncloudservice.com";
|
|
660
|
+
}
|
|
625
661
|
const host = NCR_HOST[region];
|
|
626
662
|
if (!host) {
|
|
627
663
|
throw new NhnCloudCliError(
|
|
@@ -631,7 +667,8 @@ function ncrHost(region) {
|
|
|
631
667
|
}
|
|
632
668
|
return host;
|
|
633
669
|
}
|
|
634
|
-
function instanceHost(region) {
|
|
670
|
+
function instanceHost(region, environment = "real") {
|
|
671
|
+
if (environment === "gov") return govIaasHost(region, "instance");
|
|
635
672
|
const host = INSTANCE_HOST[region];
|
|
636
673
|
if (!host) {
|
|
637
674
|
throw new NhnCloudCliError(
|
|
@@ -641,7 +678,8 @@ function instanceHost(region) {
|
|
|
641
678
|
}
|
|
642
679
|
return host;
|
|
643
680
|
}
|
|
644
|
-
function imageHost(region) {
|
|
681
|
+
function imageHost(region, environment = "real") {
|
|
682
|
+
if (environment === "gov") return govIaasHost(region, "image");
|
|
645
683
|
const host = IMAGE_HOST[region];
|
|
646
684
|
if (!host) {
|
|
647
685
|
throw new NhnCloudCliError(
|
|
@@ -651,7 +689,8 @@ function imageHost(region) {
|
|
|
651
689
|
}
|
|
652
690
|
return host;
|
|
653
691
|
}
|
|
654
|
-
function networkHost(region) {
|
|
692
|
+
function networkHost(region, environment = "real") {
|
|
693
|
+
if (environment === "gov") return govIaasHost(region, "network");
|
|
655
694
|
const host = NETWORK_HOST[region];
|
|
656
695
|
if (!host) {
|
|
657
696
|
throw new NhnCloudCliError(
|
|
@@ -661,7 +700,8 @@ function networkHost(region) {
|
|
|
661
700
|
}
|
|
662
701
|
return host;
|
|
663
702
|
}
|
|
664
|
-
function blockStorageHost(region) {
|
|
703
|
+
function blockStorageHost(region, environment = "real") {
|
|
704
|
+
if (environment === "gov") return govIaasHost(region, "block-storage");
|
|
665
705
|
const host = BLOCKSTORAGE_HOST[region];
|
|
666
706
|
if (!host) {
|
|
667
707
|
throw new NhnCloudCliError(
|
|
@@ -671,7 +711,8 @@ function blockStorageHost(region) {
|
|
|
671
711
|
}
|
|
672
712
|
return host;
|
|
673
713
|
}
|
|
674
|
-
function nksHost(region) {
|
|
714
|
+
function nksHost(region, environment = "real") {
|
|
715
|
+
if (environment === "gov") return govIaasHost(region, "kubernetes");
|
|
675
716
|
const host = NKS_HOST[region];
|
|
676
717
|
if (!host) {
|
|
677
718
|
throw new NhnCloudCliError(
|
|
@@ -721,9 +762,9 @@ function isKeystoneTokenResponse(val) {
|
|
|
721
762
|
const token = access["token"];
|
|
722
763
|
return typeof token["id"] === "string" && typeof token["expires"] === "string";
|
|
723
764
|
}
|
|
724
|
-
async function getIaasToken(profile, iaas, forceRefresh = false) {
|
|
765
|
+
async function getIaasToken(profile, iaas, forceRefresh = false, environment = "real") {
|
|
725
766
|
const credentialHash = credentialFingerprint(
|
|
726
|
-
JSON.stringify([iaas.tenantId, iaas.username, iaas.password])
|
|
767
|
+
JSON.stringify([environment, iaas.tenantId, iaas.username, iaas.password])
|
|
727
768
|
);
|
|
728
769
|
if (!forceRefresh) {
|
|
729
770
|
const cached = await readIaasToken(profile, iaas.region, credentialHash);
|
|
@@ -738,15 +779,15 @@ async function getIaasToken(profile, iaas, forceRefresh = false) {
|
|
|
738
779
|
};
|
|
739
780
|
}
|
|
740
781
|
}
|
|
741
|
-
const host = instanceHost(iaas.region);
|
|
782
|
+
const host = instanceHost(iaas.region, environment);
|
|
742
783
|
const computeEndpoint = `https://${host}/v2/${encodeURIComponent(iaas.tenantId)}`;
|
|
743
|
-
const imageEndpoint = `https://${imageHost(iaas.region)}/v2`;
|
|
744
|
-
const networkEndpoint = `https://${networkHost(iaas.region)}/v2.0`;
|
|
745
|
-
const blockStorageEndpoint = `https://${blockStorageHost(iaas.region)}/v2/${encodeURIComponent(iaas.tenantId)}`;
|
|
746
|
-
const nksEndpoint = `https://${nksHost(iaas.region)}/v1`;
|
|
784
|
+
const imageEndpoint = `https://${imageHost(iaas.region, environment)}/v2`;
|
|
785
|
+
const networkEndpoint = `https://${networkHost(iaas.region, environment)}/v2.0`;
|
|
786
|
+
const blockStorageEndpoint = `https://${blockStorageHost(iaas.region, environment)}/v2/${encodeURIComponent(iaas.tenantId)}`;
|
|
787
|
+
const nksEndpoint = `https://${nksHost(iaas.region, environment)}/v1`;
|
|
747
788
|
let raw;
|
|
748
789
|
try {
|
|
749
|
-
raw = await import_ky3.default.post(keystoneIdentityUrl(), {
|
|
790
|
+
raw = await import_ky3.default.post(keystoneIdentityUrl(environment), {
|
|
750
791
|
json: {
|
|
751
792
|
auth: {
|
|
752
793
|
tenantId: iaas.tenantId,
|
|
@@ -1007,10 +1048,10 @@ var NcrClient = class {
|
|
|
1007
1048
|
uakId;
|
|
1008
1049
|
uakSecret;
|
|
1009
1050
|
baseUrl;
|
|
1010
|
-
constructor(uakId, uakSecret, region) {
|
|
1051
|
+
constructor(uakId, uakSecret, region, environment = "real") {
|
|
1011
1052
|
this.uakId = uakId;
|
|
1012
1053
|
this.uakSecret = uakSecret;
|
|
1013
|
-
this.baseUrl = `https://${ncrHost(region)}`;
|
|
1054
|
+
this.baseUrl = `https://${ncrHost(region, environment)}`;
|
|
1014
1055
|
}
|
|
1015
1056
|
authHeaders() {
|
|
1016
1057
|
return {
|
|
@@ -1970,6 +2011,12 @@ async function verifyLogncrash(uak, appkey) {
|
|
|
1970
2011
|
// src/commands/configure.ts
|
|
1971
2012
|
async function saveAndVerify(profileName, uak, logncrash, iaas, ncr, ncs, apigateway, deploy, doVerify, logncrashUak = uak) {
|
|
1972
2013
|
if (doVerify) {
|
|
2014
|
+
if (await getProfileEnvironment(profileName, true) === "gov") {
|
|
2015
|
+
throw new NhnCloudCliError(
|
|
2016
|
+
"\uACF5\uACF5\uB9DD profile\uC740 configure \uC5F0\uACB0 \uD14C\uC2A4\uD2B8\uB97C \uC9C0\uC6D0\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4. --no-verify\uB85C \uC800\uC7A5\uD55C \uB4A4 \uC870\uD68C \uBA85\uB839\uC73C\uB85C \uD655\uC778\uD558\uC138\uC694.",
|
|
2017
|
+
EXIT_CONFIG_ERROR
|
|
2018
|
+
);
|
|
2019
|
+
}
|
|
1973
2020
|
if (uak) {
|
|
1974
2021
|
const ok = await verifyUserAccessKey(uak);
|
|
1975
2022
|
if (ok) {
|
|
@@ -3364,6 +3411,7 @@ function assertAvailableSearchToken(status) {
|
|
|
3364
3411
|
// src/commands/logncrash/helpers.ts
|
|
3365
3412
|
async function resolveLogncrashClient(profile) {
|
|
3366
3413
|
const profileName = await resolveProfileName(profile);
|
|
3414
|
+
await requireRealEnvironment(profileName, "Log & Crash");
|
|
3367
3415
|
const credential = await getServiceCredential("logncrash", profileName);
|
|
3368
3416
|
if (typeof credential.appkey !== "string" || credential.appkey.length === 0) {
|
|
3369
3417
|
throw new NhnCloudCliError(
|
|
@@ -3523,6 +3571,7 @@ var sendCommand = new import_commander6.Command("send").description("\uB85C\uADF
|
|
|
3523
3571
|
logLevel = upper;
|
|
3524
3572
|
}
|
|
3525
3573
|
const profileName = await resolveProfileName(opts.profile);
|
|
3574
|
+
await requireRealEnvironment(profileName, "Log & Crash");
|
|
3526
3575
|
const cred = await getServiceCredential("logncrash", profileName);
|
|
3527
3576
|
if (!cred.appkey) {
|
|
3528
3577
|
throw new NhnCloudCliError(
|
|
@@ -3864,6 +3913,11 @@ function isBinaryGroup(val) {
|
|
|
3864
3913
|
const descriptionType = typeof obj["description"];
|
|
3865
3914
|
return (keyType === "number" || keyType === "string") && typeof obj["name"] === "string" && (descriptionType === "undefined" || descriptionType === "string" || obj["description"] === null);
|
|
3866
3915
|
}
|
|
3916
|
+
function isScenario(val) {
|
|
3917
|
+
if (typeof val !== "object" || val === null) return false;
|
|
3918
|
+
const obj = val;
|
|
3919
|
+
return typeof obj["scenarioId"] === "number" && typeof obj["scenarioName"] === "string";
|
|
3920
|
+
}
|
|
3867
3921
|
function isBinary(val) {
|
|
3868
3922
|
if (typeof val !== "object" || val === null) return false;
|
|
3869
3923
|
const obj = val;
|
|
@@ -3874,9 +3928,9 @@ function isBinary(val) {
|
|
|
3874
3928
|
var DeployClient = class {
|
|
3875
3929
|
accessToken;
|
|
3876
3930
|
baseUrl;
|
|
3877
|
-
constructor(accessToken) {
|
|
3931
|
+
constructor(accessToken, environment = "real") {
|
|
3878
3932
|
this.accessToken = accessToken;
|
|
3879
|
-
this.baseUrl = endpointFor("deploy");
|
|
3933
|
+
this.baseUrl = endpointFor("deploy", environment);
|
|
3880
3934
|
}
|
|
3881
3935
|
authHeaders() {
|
|
3882
3936
|
return {
|
|
@@ -3948,6 +4002,24 @@ var DeployClient = class {
|
|
|
3948
4002
|
throw toNhnCloudCliError(err);
|
|
3949
4003
|
}
|
|
3950
4004
|
}
|
|
4005
|
+
/** 공공망과 일반망 Deploy v2.1의 서버 그룹 시나리오 목록을 조회한다. */
|
|
4006
|
+
async scenarios(appKey, artifactId, serverGroupId) {
|
|
4007
|
+
const url = `${this.baseUrl}/api/v2.1/projects/${encodeURIComponent(appKey)}/artifacts/${encodeURIComponent(artifactId)}/server-groups/${encodeURIComponent(serverGroupId)}/scenarios`;
|
|
4008
|
+
try {
|
|
4009
|
+
const res = await import_ky8.default.get(url, {
|
|
4010
|
+
headers: this.authHeaders(),
|
|
4011
|
+
retry: 0,
|
|
4012
|
+
timeout: DEFAULT_TIMEOUT_MS
|
|
4013
|
+
}).json();
|
|
4014
|
+
const body = unwrap(res);
|
|
4015
|
+
if (!Array.isArray(body.scenarios) || !body.scenarios.every(isScenario)) {
|
|
4016
|
+
throw new NhnCloudCliError("scenarios \uC751\uB2F5 \uD615\uC2DD\uC774 \uC62C\uBC14\uB974\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4 \u2014 scenarios \uBC30\uC5F4\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.", EXIT_API_ERROR);
|
|
4017
|
+
}
|
|
4018
|
+
return body.scenarios;
|
|
4019
|
+
} catch (err) {
|
|
4020
|
+
throw toNhnCloudCliError(err);
|
|
4021
|
+
}
|
|
4022
|
+
}
|
|
3951
4023
|
/**
|
|
3952
4024
|
* 배포 이력을 조회한다.
|
|
3953
4025
|
*/
|
|
@@ -4104,8 +4176,9 @@ async function resolveServiceAppKey(service, profileName, missingMessage) {
|
|
|
4104
4176
|
async function createDeployClient(profileOpt) {
|
|
4105
4177
|
const profileName = await resolveProfileName(profileOpt);
|
|
4106
4178
|
const uak = await getUserAccessKey(profileName);
|
|
4107
|
-
const
|
|
4108
|
-
|
|
4179
|
+
const environment = await getProfileEnvironment(profileName);
|
|
4180
|
+
const accessToken = await getAccessToken(profileName, uak.id, uak.secret, false, environment);
|
|
4181
|
+
return { client: new DeployClient(accessToken, environment), profileName };
|
|
4109
4182
|
}
|
|
4110
4183
|
async function resolveDeployAppKey(profileName) {
|
|
4111
4184
|
return resolveServiceAppKey(
|
|
@@ -4211,9 +4284,34 @@ var serverGroupsCommand = new import_commander11.Command("server-groups").descri
|
|
|
4211
4284
|
});
|
|
4212
4285
|
});
|
|
4213
4286
|
|
|
4214
|
-
// src/commands/deploy/
|
|
4287
|
+
// src/commands/deploy/scenarios.ts
|
|
4215
4288
|
var import_commander12 = require("commander");
|
|
4216
|
-
var
|
|
4289
|
+
var scenariosCommand = new import_commander12.Command("scenarios").description("\uC11C\uBC84\uADF8\uB8F9 \uC2DC\uB098\uB9AC\uC624 \uBAA9\uB85D\uC744 \uC870\uD68C\uD55C\uB2E4").option("--artifact-id <id>", "\uC544\uD2F0\uD329\uD2B8 ID").option("--server-group-id <id>", "\uC11C\uBC84\uADF8\uB8F9 ID").option("--profile <name>", "\uC0AC\uC6A9\uD560 profile \uC774\uB984").action(async (_opts, cmd) => {
|
|
4290
|
+
const opts = cmd.optsWithGlobals();
|
|
4291
|
+
const artifactId = requireCoordinate(opts.artifactId, "--artifact-id");
|
|
4292
|
+
const serverGroupId = requireCoordinate(opts.serverGroupId, "--server-group-id");
|
|
4293
|
+
const { client, profileName } = await createDeployClient(opts.profile);
|
|
4294
|
+
const appKey = await resolveDeployAppKey(profileName);
|
|
4295
|
+
startSpinner("\uC2DC\uB098\uB9AC\uC624 \uBAA9\uB85D \uC870\uD68C \uC911...");
|
|
4296
|
+
let scenarios;
|
|
4297
|
+
try {
|
|
4298
|
+
scenarios = await client.scenarios(appKey, artifactId, serverGroupId);
|
|
4299
|
+
} catch (err) {
|
|
4300
|
+
stopSpinner(false);
|
|
4301
|
+
throw err;
|
|
4302
|
+
}
|
|
4303
|
+
stopSpinner(true);
|
|
4304
|
+
output(opts, {
|
|
4305
|
+
headers: ["scenarioId", "scenarioName"],
|
|
4306
|
+
rows: scenarios.map((scenario) => [String(scenario.scenarioId), scenario.scenarioName]),
|
|
4307
|
+
raw: scenarios,
|
|
4308
|
+
ids: scenarios.map((scenario) => String(scenario.scenarioId))
|
|
4309
|
+
});
|
|
4310
|
+
});
|
|
4311
|
+
|
|
4312
|
+
// src/commands/deploy/histories.ts
|
|
4313
|
+
var import_commander13 = require("commander");
|
|
4314
|
+
var historiesCommand = new import_commander13.Command("histories").description("\uBC30\uD3EC \uC774\uB825\uC744 \uC870\uD68C\uD55C\uB2E4").option("--artifact-id <id>", "\uC870\uD68C\uD560 \uC544\uD2F0\uD329\uD2B8 ID (artifacts \uB85C \uD655\uC778)").option("--profile <name>", "\uC0AC\uC6A9\uD560 profile \uC774\uB984").action(async (_opts, cmd) => {
|
|
4217
4315
|
const opts = cmd.optsWithGlobals();
|
|
4218
4316
|
const artifactId = requireCoordinate(opts.artifactId, "--artifact-id");
|
|
4219
4317
|
const { client, profileName } = await createDeployClient(opts.profile);
|
|
@@ -4236,8 +4334,8 @@ var historiesCommand = new import_commander12.Command("histories").description("
|
|
|
4236
4334
|
});
|
|
4237
4335
|
|
|
4238
4336
|
// src/commands/deploy/binary-groups.ts
|
|
4239
|
-
var
|
|
4240
|
-
var binaryGroupsCommand = new
|
|
4337
|
+
var import_commander14 = require("commander");
|
|
4338
|
+
var binaryGroupsCommand = new import_commander14.Command("binary-groups").description("\uBC14\uC774\uB108\uB9AC \uADF8\uB8F9 \uBAA9\uB85D\uC744 \uC870\uD68C\uD55C\uB2E4").option("--artifact-id <id>", "\uC870\uD68C\uD560 \uC544\uD2F0\uD329\uD2B8 ID (artifacts \uB85C \uD655\uC778)").option("--profile <name>", "\uC0AC\uC6A9\uD560 profile \uC774\uB984").action(async (_opts, cmd) => {
|
|
4241
4339
|
const opts = cmd.optsWithGlobals();
|
|
4242
4340
|
const artifactId = requireCoordinate(opts.artifactId, "--artifact-id");
|
|
4243
4341
|
const { client, profileName } = await createDeployClient(opts.profile);
|
|
@@ -4268,7 +4366,7 @@ var binaryGroupsCommand = new import_commander13.Command("binary-groups").descri
|
|
|
4268
4366
|
});
|
|
4269
4367
|
|
|
4270
4368
|
// src/commands/deploy/binaries.ts
|
|
4271
|
-
var
|
|
4369
|
+
var import_commander15 = require("commander");
|
|
4272
4370
|
function parsePositiveInt(value, flag) {
|
|
4273
4371
|
if (value === void 0) return void 0;
|
|
4274
4372
|
if (!/^[1-9]\d*$/.test(value)) {
|
|
@@ -4279,7 +4377,7 @@ function parsePositiveInt(value, flag) {
|
|
|
4279
4377
|
}
|
|
4280
4378
|
return Number(value);
|
|
4281
4379
|
}
|
|
4282
|
-
var binariesCommand = new
|
|
4380
|
+
var binariesCommand = new import_commander15.Command("binaries").description("\uD2B9\uC815 \uBC14\uC774\uB108\uB9AC \uADF8\uB8F9\uC758 \uBC14\uC774\uB108\uB9AC \uBAA9\uB85D\uC744 \uC870\uD68C\uD55C\uB2E4").requiredOption("--binary-group <key>", "\uC870\uD68C\uD560 \uBC14\uC774\uB108\uB9AC \uADF8\uB8F9 key (binary-groups \uB85C \uD655\uC778)").option("--page-num <n>", "\uD398\uC774\uC9C0 \uBC88\uD638 (1 \uC774\uC0C1)").option("--page-size <n>", "\uD398\uC774\uC9C0 \uD06C\uAE30 (1 \uC774\uC0C1)").option("--sort-key <k>", "\uC815\uB82C \uAE30\uC900 (\uC608: UPLOAD_DATE)").option("--sort-direction <d>", "\uC815\uB82C \uBC29\uD5A5 (\uC608: DESC)").option("--artifact-id <id>", "\uC870\uD68C\uD560 \uC544\uD2F0\uD329\uD2B8 ID (artifacts \uB85C \uD655\uC778)").option("--profile <name>", "\uC0AC\uC6A9\uD560 profile \uC774\uB984").action(async (_opts, cmd) => {
|
|
4283
4381
|
const opts = cmd.optsWithGlobals();
|
|
4284
4382
|
const binaryGroupKey = parsePositiveInt(opts.binaryGroup, "--binary-group");
|
|
4285
4383
|
if (binaryGroupKey === void 0) {
|
|
@@ -4323,7 +4421,7 @@ var binariesCommand = new import_commander14.Command("binaries").description("\u
|
|
|
4323
4421
|
});
|
|
4324
4422
|
|
|
4325
4423
|
// src/commands/deploy/upload.ts
|
|
4326
|
-
var
|
|
4424
|
+
var import_commander16 = require("commander");
|
|
4327
4425
|
var import_node_fs5 = require("fs");
|
|
4328
4426
|
var import_node_path7 = require("path");
|
|
4329
4427
|
var MAX_UPLOAD_BYTES = 512 * 1024 * 1024;
|
|
@@ -4337,7 +4435,7 @@ function parsePositiveInt2(value, flag) {
|
|
|
4337
4435
|
}
|
|
4338
4436
|
return Number(value);
|
|
4339
4437
|
}
|
|
4340
|
-
var uploadCommand = new
|
|
4438
|
+
var uploadCommand = new import_commander16.Command("upload").description("\uB85C\uCEEC \uD30C\uC77C\uC744 \uBC14\uC774\uB108\uB9AC \uADF8\uB8F9\uC5D0 \uC5C5\uB85C\uB4DC\uD55C\uB2E4").requiredOption("--file <path>", "\uC5C5\uB85C\uB4DC\uD560 \uD30C\uC77C \uACBD\uB85C").requiredOption("--binary-group <key>", "\uC5C5\uB85C\uB4DC \uB300\uC0C1 \uBC14\uC774\uB108\uB9AC \uADF8\uB8F9 key (binary-groups \uB85C \uD655\uC778)").option("--application-type <type>", "applicationType (\uC608: server)", "server").option("--description <text>", "\uBC14\uC774\uB108\uB9AC \uC124\uBA85").option("--artifact-id <id>", "\uC5C5\uB85C\uB4DC \uB300\uC0C1 \uC544\uD2F0\uD329\uD2B8 ID (artifacts \uB85C \uD655\uC778)").option("--profile <name>", "\uC0AC\uC6A9\uD560 profile \uC774\uB984").action(async (_opts, cmd) => {
|
|
4341
4439
|
const opts = cmd.optsWithGlobals();
|
|
4342
4440
|
const binaryGroupKey = parsePositiveInt2(opts.binaryGroup, "--binary-group");
|
|
4343
4441
|
if (binaryGroupKey === void 0) {
|
|
@@ -4398,7 +4496,7 @@ var uploadCommand = new import_commander15.Command("upload").description("\uB85C
|
|
|
4398
4496
|
});
|
|
4399
4497
|
|
|
4400
4498
|
// src/commands/deploy/download.ts
|
|
4401
|
-
var
|
|
4499
|
+
var import_commander17 = require("commander");
|
|
4402
4500
|
var import_node_fs6 = require("fs");
|
|
4403
4501
|
var import_chalk4 = __toESM(require("chalk"));
|
|
4404
4502
|
function parsePositiveInt3(value, flag) {
|
|
@@ -4428,7 +4526,7 @@ function assertWritable2(path5, force) {
|
|
|
4428
4526
|
EXIT_PARAM_ERROR
|
|
4429
4527
|
);
|
|
4430
4528
|
}
|
|
4431
|
-
var downloadCommand = new
|
|
4529
|
+
var downloadCommand = new import_commander17.Command("download").description("\uBC14\uC774\uB108\uB9AC\uB97C \uB85C\uCEEC \uD30C\uC77C\uB85C \uB2E4\uC6B4\uB85C\uB4DC\uD55C\uB2E4").requiredOption("--binary-group <key>", "\uBC14\uC774\uB108\uB9AC \uADF8\uB8F9 key (binary-groups \uB85C \uD655\uC778)").requiredOption("--binary-key <key>", "\uB2E4\uC6B4\uB85C\uB4DC\uD560 \uBC14\uC774\uB108\uB9AC key (binaries \uB610\uB294 upload \uB85C \uD655\uC778)").requiredOption("-o, --output <file>", "\uC800\uC7A5\uD560 \uD30C\uC77C \uACBD\uB85C").option("--force", "\uB300\uC0C1 \uD30C\uC77C\uC774 \uC788\uC73C\uBA74 \uB36E\uC5B4\uC4F4\uB2E4").option("--artifact-id <id>", "\uB300\uC0C1 \uC544\uD2F0\uD329\uD2B8 ID (artifacts \uB85C \uD655\uC778)").option("--profile <name>", "\uC0AC\uC6A9\uD560 profile \uC774\uB984").action(async (_opts, cmd) => {
|
|
4432
4530
|
const opts = cmd.optsWithGlobals();
|
|
4433
4531
|
const binaryGroupKey = parsePositiveInt3(opts.binaryGroup, "--binary-group");
|
|
4434
4532
|
const binaryKey = parsePositiveInt3(opts.binaryKey, "--binary-key");
|
|
@@ -4456,14 +4554,15 @@ var downloadCommand = new import_commander16.Command("download").description("\u
|
|
|
4456
4554
|
});
|
|
4457
4555
|
|
|
4458
4556
|
// src/commands/instance/list.ts
|
|
4459
|
-
var
|
|
4557
|
+
var import_commander18 = require("commander");
|
|
4460
4558
|
|
|
4461
4559
|
// src/commands/iaas.ts
|
|
4462
4560
|
async function resolveIaasTokenContext(opts) {
|
|
4463
4561
|
const profileName = await resolveProfileName(opts.profile);
|
|
4464
4562
|
const iaas = await getIaasCredential(profileName);
|
|
4465
4563
|
const effectiveIaas = opts.region ? { ...iaas, region: opts.region } : iaas;
|
|
4466
|
-
const
|
|
4564
|
+
const environment = await getProfileEnvironment(profileName);
|
|
4565
|
+
const tokenContext = await getIaasToken(profileName, effectiveIaas, false, environment);
|
|
4467
4566
|
return { profileName, ...tokenContext };
|
|
4468
4567
|
}
|
|
4469
4568
|
|
|
@@ -5021,7 +5120,7 @@ async function resolveInstanceClient(opts) {
|
|
|
5021
5120
|
function getIps(server) {
|
|
5022
5121
|
return Object.values(server.addresses).flat().map((a) => a.addr).join(", ");
|
|
5023
5122
|
}
|
|
5024
|
-
var listCommand = new
|
|
5123
|
+
var listCommand = new import_commander18.Command("list").description("\uC778\uC2A4\uD134\uC2A4 \uBAA9\uB85D\uC744 \uC870\uD68C\uD55C\uB2E4").option("--region <region>", "region override (\uAE30\uBCF8: iaas \uC790\uACA9\uC99D\uBA85\uC758 region)").option("--profile <name>", "\uC0AC\uC6A9\uD560 profile \uC774\uB984").action(async (_opts, cmd) => {
|
|
5025
5124
|
const opts = cmd.optsWithGlobals();
|
|
5026
5125
|
const { client } = await resolveInstanceClient(opts);
|
|
5027
5126
|
startSpinner("\uC778\uC2A4\uD134\uC2A4 \uBAA9\uB85D \uC870\uD68C \uC911...");
|
|
@@ -5042,7 +5141,7 @@ var listCommand = new import_commander17.Command("list").description("\uC778\uC2
|
|
|
5042
5141
|
});
|
|
5043
5142
|
|
|
5044
5143
|
// src/commands/volume/list.ts
|
|
5045
|
-
var
|
|
5144
|
+
var import_commander19 = require("commander");
|
|
5046
5145
|
|
|
5047
5146
|
// src/services/blockstorage/client.ts
|
|
5048
5147
|
var import_ky10 = __toESM(require("ky"));
|
|
@@ -5160,7 +5259,7 @@ function parsePositiveInt4(value, flag) {
|
|
|
5160
5259
|
}
|
|
5161
5260
|
return Number(value);
|
|
5162
5261
|
}
|
|
5163
|
-
var listCommand2 = new
|
|
5262
|
+
var listCommand2 = new import_commander19.Command("list").description("\uBCFC\uB968 \uBAA9\uB85D\uC744 \uC870\uD68C\uD55C\uB2E4").option("--sort <key:dir>", "\uC815\uB82C \uAE30\uC900 (\uC608: created_at:desc)").option("--limit <n>", "\uCD5C\uB300 \uBC18\uD658 \uAC1C\uC218").option("--offset <n>", "\uD398\uC774\uC9C0 \uC2DC\uC791 \uC624\uD504\uC14B").option("--marker <id>", "\uD398\uC774\uC9C0\uB124\uC774\uC158 \uB9C8\uCEE4 \uBCFC\uB968 ID").option("--region <region>", "region override (\uAE30\uBCF8: iaas \uC790\uACA9\uC99D\uBA85\uC758 region)").option("--profile <name>", "\uC0AC\uC6A9\uD560 profile \uC774\uB984").action(async (_opts, cmd) => {
|
|
5164
5263
|
const opts = cmd.optsWithGlobals();
|
|
5165
5264
|
const limitNum = opts.limit !== void 0 ? parsePositiveInt4(opts.limit, "--limit") : void 0;
|
|
5166
5265
|
const offsetNum = opts.offset !== void 0 ? parsePositiveInt4(opts.offset, "--offset") : void 0;
|
|
@@ -5194,8 +5293,8 @@ var listCommand2 = new import_commander18.Command("list").description("\uBCFC\uB
|
|
|
5194
5293
|
});
|
|
5195
5294
|
|
|
5196
5295
|
// src/commands/volume/get.ts
|
|
5197
|
-
var
|
|
5198
|
-
var getCommand = new
|
|
5296
|
+
var import_commander20 = require("commander");
|
|
5297
|
+
var getCommand = new import_commander20.Command("get").description("\uB2E8\uC77C \uBCFC\uB968 \uC0C1\uD0DC\uB97C \uC870\uD68C\uD55C\uB2E4").argument("<id>", "\uBCFC\uB968 ID").option("--region <region>", "region override (\uAE30\uBCF8: iaas \uC790\uACA9\uC99D\uBA85\uC758 region)").option("--profile <name>", "\uC0AC\uC6A9\uD560 profile \uC774\uB984").action(async (id, _opts, cmd) => {
|
|
5199
5298
|
const opts = cmd.optsWithGlobals();
|
|
5200
5299
|
const { client } = await resolveVolumeClient(opts);
|
|
5201
5300
|
startSpinner("\uBCFC\uB968 \uC870\uD68C \uC911...");
|
|
@@ -5226,9 +5325,9 @@ var getCommand = new import_commander19.Command("get").description("\uB2E8\uC77C
|
|
|
5226
5325
|
});
|
|
5227
5326
|
|
|
5228
5327
|
// src/commands/volume/create.ts
|
|
5229
|
-
var
|
|
5328
|
+
var import_commander21 = require("commander");
|
|
5230
5329
|
var import_chalk5 = __toESM(require("chalk"));
|
|
5231
|
-
var createCommand = new
|
|
5330
|
+
var createCommand = new import_commander21.Command("create").description("\uBCFC\uB968\uC744 \uBC1C\uAE09\uD55C\uB2E4").requiredOption("--size <gb>", "\uBCFC\uB968 \uD06C\uAE30(GB) \u2014 \uD544\uC218").option("--name <name>", "\uBCFC\uB968 \uC774\uB984").option("--description <text>", "\uBCFC\uB968 \uC124\uBA85").option("--volume-type <type>", "\uBCFC\uB968 \uD0C0\uC785").option("--availability-zone <az>", "\uAC00\uC6A9\uC131 \uC601\uC5ED(AZ). instance availability-zones \uB85C \uC870\uD68C\uD55C zoneName \uC9C0\uC815").option("--snapshot-id <id>", "\uC2A4\uB0C5\uC0F7 ID (\uC2A4\uB0C5\uC0F7\uC5D0\uC11C \uBCFC\uB968 \uC0DD\uC131)").option("--region <region>", "region override (\uAE30\uBCF8: iaas \uC790\uACA9\uC99D\uBA85\uC758 region)").option("--profile <name>", "\uC0AC\uC6A9\uD560 profile \uC774\uB984").action(async (_opts, cmd) => {
|
|
5232
5331
|
const opts = cmd.optsWithGlobals();
|
|
5233
5332
|
if (!/^[1-9]\d*$/.test(opts.size)) {
|
|
5234
5333
|
throw new NhnCloudCliError(
|
|
@@ -5281,7 +5380,7 @@ var createCommand = new import_commander20.Command("create").description("\uBCFC
|
|
|
5281
5380
|
});
|
|
5282
5381
|
|
|
5283
5382
|
// src/commands/network/list.ts
|
|
5284
|
-
var
|
|
5383
|
+
var import_commander22 = require("commander");
|
|
5285
5384
|
|
|
5286
5385
|
// src/services/network/client.ts
|
|
5287
5386
|
var import_ky11 = __toESM(require("ky"));
|
|
@@ -5460,7 +5559,7 @@ async function resolveNetworkClient(opts) {
|
|
|
5460
5559
|
}
|
|
5461
5560
|
|
|
5462
5561
|
// src/commands/network/list.ts
|
|
5463
|
-
var listCommand3 = new
|
|
5562
|
+
var listCommand3 = new import_commander22.Command("list").description("VPC \uBAA9\uB85D\uC744 \uC870\uD68C\uD55C\uB2E4 (\uC804\uCCB4 \uD544\uB4DC\uB294 --json)").option("--region <region>", "region override (\uAE30\uBCF8: iaas \uC790\uACA9\uC99D\uBA85\uC758 region)").option("--profile <name>", "\uC0AC\uC6A9\uD560 profile \uC774\uB984").action(async (_opts, cmd) => {
|
|
5464
5563
|
const opts = cmd.optsWithGlobals();
|
|
5465
5564
|
const { client } = await resolveNetworkClient(opts);
|
|
5466
5565
|
startSpinner("VPC \uBAA9\uB85D \uC870\uD68C \uC911...");
|
|
@@ -5481,8 +5580,8 @@ var listCommand3 = new import_commander21.Command("list").description("VPC \uBAA
|
|
|
5481
5580
|
});
|
|
5482
5581
|
|
|
5483
5582
|
// src/commands/network/subnet.ts
|
|
5484
|
-
var
|
|
5485
|
-
var subnetListCommand = new
|
|
5583
|
+
var import_commander23 = require("commander");
|
|
5584
|
+
var subnetListCommand = new import_commander23.Command("list").description("\uC11C\uBE0C\uB137 \uBAA9\uB85D\uC744 \uC870\uD68C\uD55C\uB2E4 (\uC804\uCCB4 \uD544\uB4DC\uB294 --json)").option("--region <region>", "region override (\uAE30\uBCF8: iaas \uC790\uACA9\uC99D\uBA85\uC758 region)").option("--profile <name>", "\uC0AC\uC6A9\uD560 profile \uC774\uB984").action(async (_opts, cmd) => {
|
|
5486
5585
|
const opts = cmd.optsWithGlobals();
|
|
5487
5586
|
const { client } = await resolveNetworkClient(opts);
|
|
5488
5587
|
startSpinner("\uC11C\uBE0C\uB137 \uBAA9\uB85D \uC870\uD68C \uC911...");
|
|
@@ -5507,11 +5606,11 @@ var subnetListCommand = new import_commander22.Command("list").description("\uC1
|
|
|
5507
5606
|
ids: subnets.map((s) => s.id)
|
|
5508
5607
|
});
|
|
5509
5608
|
});
|
|
5510
|
-
var subnetCommand = new
|
|
5609
|
+
var subnetCommand = new import_commander23.Command("subnet").description("\uC11C\uBE0C\uB137 \uAD00\uB828 \uBA85\uB839").addCommand(subnetListCommand);
|
|
5511
5610
|
|
|
5512
5611
|
// src/commands/floatingip/list.ts
|
|
5513
|
-
var
|
|
5514
|
-
var listCommand4 = new
|
|
5612
|
+
var import_commander24 = require("commander");
|
|
5613
|
+
var listCommand4 = new import_commander24.Command("list").description("Floating IP \uBAA9\uB85D\uC744 \uC870\uD68C\uD55C\uB2E4").option("--region <region>", "region override (\uAE30\uBCF8: iaas \uC790\uACA9\uC99D\uBA85\uC758 region)").option("--profile <name>", "\uC0AC\uC6A9\uD560 profile \uC774\uB984").action(async (_opts, cmd) => {
|
|
5515
5614
|
const opts = cmd.optsWithGlobals();
|
|
5516
5615
|
const { client } = await resolveNetworkClient(opts);
|
|
5517
5616
|
startSpinner("Floating IP \uBAA9\uB85D \uC870\uD68C \uC911...");
|
|
@@ -5538,9 +5637,9 @@ var listCommand4 = new import_commander23.Command("list").description("Floating
|
|
|
5538
5637
|
});
|
|
5539
5638
|
|
|
5540
5639
|
// src/commands/floatingip/create.ts
|
|
5541
|
-
var
|
|
5640
|
+
var import_commander25 = require("commander");
|
|
5542
5641
|
var import_chalk6 = __toESM(require("chalk"));
|
|
5543
|
-
var createCommand2 = new
|
|
5642
|
+
var createCommand2 = new import_commander25.Command("create").description("Floating IP \uB97C \uBC1C\uAE09\uD55C\uB2E4 (--network \uBBF8\uC9C0\uC815 \uC2DC \uC678\uBD80 VPC \uC790\uB3D9 \uC870\uD68C)").option("--network <id>", "\uC678\uBD80 \uB124\uD2B8\uC6CC\uD06C(VPC) id (\uBBF8\uC9C0\uC815 \uC2DC router:external=true \uC790\uB3D9 \uC870\uD68C)").option("--region <region>", "region override (\uAE30\uBCF8: iaas \uC790\uACA9\uC99D\uBA85\uC758 region)").option("--profile <name>", "\uC0AC\uC6A9\uD560 profile \uC774\uB984").action(async (_opts, cmd) => {
|
|
5544
5643
|
const opts = cmd.optsWithGlobals();
|
|
5545
5644
|
const { client } = await resolveNetworkClient(opts);
|
|
5546
5645
|
let networkId = opts.network;
|
|
@@ -5583,9 +5682,9 @@ var createCommand2 = new import_commander24.Command("create").description("Float
|
|
|
5583
5682
|
});
|
|
5584
5683
|
|
|
5585
5684
|
// src/commands/floatingip/delete.ts
|
|
5586
|
-
var
|
|
5685
|
+
var import_commander26 = require("commander");
|
|
5587
5686
|
var import_chalk7 = __toESM(require("chalk"));
|
|
5588
|
-
var deleteCommand = new
|
|
5687
|
+
var deleteCommand = new import_commander26.Command("delete").description("Floating IP \uB97C \uC0AD\uC81C\uD55C\uB2E4").argument("<id>", "Floating IP ID").option("--yes", "\uD655\uC778 \uD504\uB86C\uD504\uD2B8 \uC0DD\uB7B5 (CI/\uBE44\uB300\uD654\uD615 \uD544\uC218)").option("--region <region>", "region override (\uAE30\uBCF8: iaas \uC790\uACA9\uC99D\uBA85\uC758 region)").option("--profile <name>", "\uC0AC\uC6A9\uD560 profile \uC774\uB984").action(async (id, _opts, cmd) => {
|
|
5589
5688
|
const opts = cmd.optsWithGlobals();
|
|
5590
5689
|
const isTTY = process.stdin.isTTY;
|
|
5591
5690
|
if (!isTTY && !opts.yes) {
|
|
@@ -5619,8 +5718,8 @@ var deleteCommand = new import_commander25.Command("delete").description("Floati
|
|
|
5619
5718
|
});
|
|
5620
5719
|
|
|
5621
5720
|
// src/commands/instance/flavors.ts
|
|
5622
|
-
var
|
|
5623
|
-
var flavorsCommand = new
|
|
5721
|
+
var import_commander27 = require("commander");
|
|
5722
|
+
var flavorsCommand = new import_commander27.Command("flavors").description("\uC778\uC2A4\uD134\uC2A4 \uD0C0\uC785(flavor)\uC744 \uC870\uD68C\uD55C\uB2E4 (\uAE30\uBCF8 id\xB7name, --detail \uB85C \uC2A4\uD399, \uC804\uCCB4 \uD544\uB4DC\uB294 --json)").option("--detail", "vcpus\xB7ram\xB7disk \uB4F1 \uC2A4\uD399 \uD3EC\uD568 (GET /flavors/detail)").option("--min-disk <gb>", "\uCD5C\uC18C \uBE14\uB85D \uC2A4\uD1A0\uB9AC\uC9C0 \uD06C\uAE30(GB) \uC774\uC0C1\uB9CC \uD544\uD130").option("--min-ram <mb>", "\uCD5C\uC18C RAM \uD06C\uAE30(MB) \uC774\uC0C1\uB9CC \uD544\uD130").option("--region <region>", "region override (\uAE30\uBCF8: iaas \uC790\uACA9\uC99D\uBA85\uC758 region)").option("--profile <name>", "\uC0AC\uC6A9\uD560 profile \uC774\uB984").action(async (_opts, cmd) => {
|
|
5624
5723
|
const opts = cmd.optsWithGlobals();
|
|
5625
5724
|
const minDisk = parseNonNegativeIntegerOption(opts.minDisk, "--min-disk");
|
|
5626
5725
|
const minRam = parseNonNegativeIntegerOption(opts.minRam, "--min-ram");
|
|
@@ -5663,8 +5762,8 @@ function isDetailList(flavors) {
|
|
|
5663
5762
|
}
|
|
5664
5763
|
|
|
5665
5764
|
// src/commands/instance/availability-zones.ts
|
|
5666
|
-
var
|
|
5667
|
-
var availabilityZonesCommand = new
|
|
5765
|
+
var import_commander28 = require("commander");
|
|
5766
|
+
var availabilityZonesCommand = new import_commander28.Command("availability-zones").description("\uAC00\uC6A9\uC131 \uC601\uC5ED(availability zone) \uBAA9\uB85D\uC744 \uC870\uD68C\uD55C\uB2E4 (zoneName\xB7available)").option("--region <region>", "region override (\uAE30\uBCF8: iaas \uC790\uACA9\uC99D\uBA85\uC758 region)").option("--profile <name>", "\uC0AC\uC6A9\uD560 profile \uC774\uB984").action(async (_opts, cmd) => {
|
|
5668
5767
|
const opts = cmd.optsWithGlobals();
|
|
5669
5768
|
const { client } = await resolveInstanceClient(opts);
|
|
5670
5769
|
startSpinner("\uAC00\uC6A9\uC131 \uC601\uC5ED \uC870\uD68C \uC911...");
|
|
@@ -5685,14 +5784,14 @@ var availabilityZonesCommand = new import_commander27.Command("availability-zone
|
|
|
5685
5784
|
});
|
|
5686
5785
|
|
|
5687
5786
|
// src/commands/instance/get.ts
|
|
5688
|
-
var
|
|
5787
|
+
var import_commander29 = require("commander");
|
|
5689
5788
|
function getIps2(server) {
|
|
5690
5789
|
return Object.values(server.addresses).flat().map((a) => a.addr).join(", ");
|
|
5691
5790
|
}
|
|
5692
5791
|
function getImageId(server) {
|
|
5693
5792
|
return typeof server.image === "object" ? server.image.id : "";
|
|
5694
5793
|
}
|
|
5695
|
-
var getCommand2 = new
|
|
5794
|
+
var getCommand2 = new import_commander29.Command("get").description("\uB2E8\uC77C \uC778\uC2A4\uD134\uC2A4 \uC0C1\uD0DC\uB97C \uC870\uD68C\uD55C\uB2E4").argument("<id>", "\uC778\uC2A4\uD134\uC2A4 ID").option("--region <region>", "region override (\uAE30\uBCF8: iaas \uC790\uACA9\uC99D\uBA85\uC758 region)").option("--profile <name>", "\uC0AC\uC6A9\uD560 profile \uC774\uB984").action(async (id, _opts, cmd) => {
|
|
5696
5795
|
const opts = cmd.optsWithGlobals();
|
|
5697
5796
|
const { client } = await resolveInstanceClient(opts);
|
|
5698
5797
|
startSpinner("\uC778\uC2A4\uD134\uC2A4 \uC870\uD68C \uC911...");
|
|
@@ -5724,7 +5823,7 @@ var getCommand2 = new import_commander28.Command("get").description("\uB2E8\uC77
|
|
|
5724
5823
|
});
|
|
5725
5824
|
|
|
5726
5825
|
// src/commands/instance/create.ts
|
|
5727
|
-
var
|
|
5826
|
+
var import_commander30 = require("commander");
|
|
5728
5827
|
var import_node_fs7 = require("fs");
|
|
5729
5828
|
var import_chalk8 = __toESM(require("chalk"));
|
|
5730
5829
|
function getFirstIp(server) {
|
|
@@ -5741,7 +5840,7 @@ function getIps3(server) {
|
|
|
5741
5840
|
function getImageId2(server) {
|
|
5742
5841
|
return typeof server.image === "object" ? server.image.id : "";
|
|
5743
5842
|
}
|
|
5744
|
-
var createCommand3 = new
|
|
5843
|
+
var createCommand3 = new import_commander30.Command("create").description("\uC778\uC2A4\uD134\uC2A4\uB97C \uC0DD\uC131\uD55C\uB2E4").requiredOption("--name <name>", "\uC778\uC2A4\uD134\uC2A4 \uC774\uB984").requiredOption("--flavor <id>", "flavor ID").requiredOption("--image <id>", "\uC774\uBBF8\uC9C0 ID").requiredOption("--network <uuid>", "\uB124\uD2B8\uC6CC\uD06C UUID (\uC5EC\uB7EC \uAC1C: \uBC18\uBCF5 \uC9C0\uC815)", (v, prev) => [...prev, v], []).option("--boot-volume-size <gb>", "boot-from-volume root \uBCFC\uB968 \uD06C\uAE30 (GB). GPU(g2) \uB4F1 boot-from-volume \uD544\uC218 flavor \uC5D0 \uC9C0\uC815").option("--key-name <name>", "\uD0A4\uD398\uC5B4 \uC774\uB984").option("--security-group <name>", "\uBCF4\uC548 \uADF8\uB8F9 \uC774\uB984 (\uC5EC\uB7EC \uAC1C: \uBC18\uBCF5 \uC9C0\uC815)", (v, prev) => [...prev, v], []).option("--ephemeral-disk-size <gb>", "\uC784\uC2DC \uB514\uC2A4\uD06C \uD06C\uAE30 (GB, NHN \uD655\uC7A5)").option("--protect", "\uC0AD\uC81C \uBC29\uC9C0 \uC124\uC815 (NHN \uD655\uC7A5)").option("--user-data <path>", "cloud-init user-data \uD30C\uC77C \uACBD\uB85C (base64 \uC778\uCF54\uB529\uD574 \uC8FC\uC785, \uC778\uCF54\uB529 \uD6C4 65535 \uBC14\uC774\uD2B8 \uD55C\uB3C4)").option("--wait", "ACTIVE \uC0C1\uD0DC\uAC00 \uB420 \uB54C\uAE4C\uC9C0 \uB300\uAE30").option("--timeout <sec>", "wait \uD0C0\uC784\uC544\uC6C3 (\uCD08, \uAE30\uBCF8 300)", "300").option("--region <region>", "region override (\uAE30\uBCF8: iaas \uC790\uACA9\uC99D\uBA85\uC758 region)").option("--profile <name>", "\uC0AC\uC6A9\uD560 profile \uC774\uB984").action(async (_opts, cmd) => {
|
|
5745
5844
|
const opts = cmd.optsWithGlobals();
|
|
5746
5845
|
const networks = opts.network ?? [];
|
|
5747
5846
|
if (networks.length === 0) {
|
|
@@ -5840,9 +5939,9 @@ var createCommand3 = new import_commander29.Command("create").description("\uC77
|
|
|
5840
5939
|
});
|
|
5841
5940
|
|
|
5842
5941
|
// src/commands/instance/delete.ts
|
|
5843
|
-
var
|
|
5942
|
+
var import_commander31 = require("commander");
|
|
5844
5943
|
var import_chalk9 = __toESM(require("chalk"));
|
|
5845
|
-
var deleteCommand2 = new
|
|
5944
|
+
var deleteCommand2 = new import_commander31.Command("delete").description("\uC778\uC2A4\uD134\uC2A4\uB97C \uC0AD\uC81C\uD55C\uB2E4").argument("<id>", "\uC778\uC2A4\uD134\uC2A4 ID").option("--yes", "\uD655\uC778 \uD504\uB86C\uD504\uD2B8 \uC0DD\uB7B5 (CI/\uBE44\uB300\uD654\uD615 \uD544\uC218)").option("--region <region>", "region override (\uAE30\uBCF8: iaas \uC790\uACA9\uC99D\uBA85\uC758 region)").option("--profile <name>", "\uC0AC\uC6A9\uD560 profile \uC774\uB984").action(async (id, _opts, cmd) => {
|
|
5846
5945
|
const opts = cmd.optsWithGlobals();
|
|
5847
5946
|
const isTTY = process.stdin.isTTY;
|
|
5848
5947
|
if (!isTTY && !opts.yes) {
|
|
@@ -5876,9 +5975,9 @@ var deleteCommand2 = new import_commander30.Command("delete").description("\uC77
|
|
|
5876
5975
|
});
|
|
5877
5976
|
|
|
5878
5977
|
// src/commands/instance/power.ts
|
|
5879
|
-
var
|
|
5978
|
+
var import_commander32 = require("commander");
|
|
5880
5979
|
var import_chalk10 = __toESM(require("chalk"));
|
|
5881
|
-
var startCommand = new
|
|
5980
|
+
var startCommand = new import_commander32.Command("start").description("\uC778\uC2A4\uD134\uC2A4\uB97C \uC2DC\uC791\uD55C\uB2E4 (SHUTOFF \u2192 ACTIVE)").argument("<id>", "\uC778\uC2A4\uD134\uC2A4 ID").option("--region <region>", "region override (\uAE30\uBCF8: iaas \uC790\uACA9\uC99D\uBA85\uC758 region)").option("--profile <name>", "\uC0AC\uC6A9\uD560 profile \uC774\uB984").action(async (id, _opts, cmd) => {
|
|
5882
5981
|
const opts = cmd.optsWithGlobals();
|
|
5883
5982
|
const { client } = await resolveInstanceClient(opts);
|
|
5884
5983
|
startSpinner(`\uC778\uC2A4\uD134\uC2A4 \uC2DC\uC791 \uC911... (id: ${id})`);
|
|
@@ -5892,7 +5991,7 @@ var startCommand = new import_commander31.Command("start").description("\uC778\u
|
|
|
5892
5991
|
process.stderr.write(import_chalk10.default.green(`\u2713 \uC778\uC2A4\uD134\uC2A4 "${id}" \uC2DC\uC791\uC744 \uC694\uCCAD\uD588\uC2B5\uB2C8\uB2E4 (\u2192 ACTIVE).
|
|
5893
5992
|
`));
|
|
5894
5993
|
});
|
|
5895
|
-
var stopCommand = new
|
|
5994
|
+
var stopCommand = new import_commander32.Command("stop").description("\uC778\uC2A4\uD134\uC2A4\uB97C \uC815\uC9C0\uD55C\uB2E4 (ACTIVE/ERROR \u2192 SHUTOFF)").argument("<id>", "\uC778\uC2A4\uD134\uC2A4 ID").option("--region <region>", "region override (\uAE30\uBCF8: iaas \uC790\uACA9\uC99D\uBA85\uC758 region)").option("--profile <name>", "\uC0AC\uC6A9\uD560 profile \uC774\uB984").action(async (id, _opts, cmd) => {
|
|
5896
5995
|
const opts = cmd.optsWithGlobals();
|
|
5897
5996
|
const { client } = await resolveInstanceClient(opts);
|
|
5898
5997
|
startSpinner(`\uC778\uC2A4\uD134\uC2A4 \uC815\uC9C0 \uC911... (id: ${id})`);
|
|
@@ -5906,7 +6005,7 @@ var stopCommand = new import_commander31.Command("stop").description("\uC778\uC2
|
|
|
5906
6005
|
process.stderr.write(import_chalk10.default.green(`\u2713 \uC778\uC2A4\uD134\uC2A4 "${id}" \uC815\uC9C0\uB97C \uC694\uCCAD\uD588\uC2B5\uB2C8\uB2E4 (\u2192 SHUTOFF).
|
|
5907
6006
|
`));
|
|
5908
6007
|
});
|
|
5909
|
-
var rebootCommand = new
|
|
6008
|
+
var rebootCommand = new import_commander32.Command("reboot").description("\uC778\uC2A4\uD134\uC2A4\uB97C \uC7AC\uBD80\uD305\uD55C\uB2E4 (\uAE30\uBCF8 SOFT, --hard \uB85C HARD)").argument("<id>", "\uC778\uC2A4\uD134\uC2A4 ID").option("--hard", "HARD \uC7AC\uBD80\uD305 (\uAC15\uC81C \uC804\uC6D0 cycle, \uAE30\uBCF8\uC740 SOFT)").option("--region <region>", "region override (\uAE30\uBCF8: iaas \uC790\uACA9\uC99D\uBA85\uC758 region)").option("--profile <name>", "\uC0AC\uC6A9\uD560 profile \uC774\uB984").action(async (id, _opts, cmd) => {
|
|
5910
6009
|
const opts = cmd.optsWithGlobals();
|
|
5911
6010
|
const { client } = await resolveInstanceClient(opts);
|
|
5912
6011
|
const type = opts.hard ? "HARD" : "SOFT";
|
|
@@ -5923,9 +6022,9 @@ var rebootCommand = new import_commander31.Command("reboot").description("\uC778
|
|
|
5923
6022
|
});
|
|
5924
6023
|
|
|
5925
6024
|
// src/commands/instance/resize.ts
|
|
5926
|
-
var
|
|
6025
|
+
var import_commander33 = require("commander");
|
|
5927
6026
|
var import_chalk11 = __toESM(require("chalk"));
|
|
5928
|
-
var resizeCommand = new
|
|
6027
|
+
var resizeCommand = new import_commander33.Command("resize").description("\uC778\uC2A4\uD134\uC2A4 \uD0C0\uC785(flavor)\uC744 \uBCC0\uACBD\uD55C\uB2E4").argument("<id>", "\uC778\uC2A4\uD134\uC2A4 ID").requiredOption("--flavor <id>", "\uBCC0\uACBD\uD560 flavor ID (instance flavors \uB85C \uD6C4\uBCF4 \uC870\uD68C)").option("--region <region>", "region override (\uAE30\uBCF8: iaas \uC790\uACA9\uC99D\uBA85\uC758 region)").option("--profile <name>", "\uC0AC\uC6A9\uD560 profile \uC774\uB984").action(async (id, _opts, cmd) => {
|
|
5929
6028
|
const opts = cmd.optsWithGlobals();
|
|
5930
6029
|
const { client } = await resolveInstanceClient(opts);
|
|
5931
6030
|
startSpinner(`\uC778\uC2A4\uD134\uC2A4 \uD0C0\uC785 \uBCC0\uACBD \uC911... (id: ${id})`);
|
|
@@ -5943,7 +6042,7 @@ var resizeCommand = new import_commander32.Command("resize").description("\uC778
|
|
|
5943
6042
|
)
|
|
5944
6043
|
);
|
|
5945
6044
|
});
|
|
5946
|
-
var resizeConfirmCommand = new
|
|
6045
|
+
var resizeConfirmCommand = new import_commander33.Command("resize-confirm").description("resize \uB97C \uD655\uC815\uD55C\uB2E4 (VERIFY_RESIZE \u2192 ACTIVE, \uC0C8 flavor \uB85C \uACE0\uC815)").argument("<id>", "\uC778\uC2A4\uD134\uC2A4 ID").option("--region <region>", "region override (\uAE30\uBCF8: iaas \uC790\uACA9\uC99D\uBA85\uC758 region)").option("--profile <name>", "\uC0AC\uC6A9\uD560 profile \uC774\uB984").action(async (id, _opts, cmd) => {
|
|
5947
6046
|
const opts = cmd.optsWithGlobals();
|
|
5948
6047
|
const { client } = await resolveInstanceClient(opts);
|
|
5949
6048
|
startSpinner(`resize \uD655\uC815 \uC911... (id: ${id})`);
|
|
@@ -5957,7 +6056,7 @@ var resizeConfirmCommand = new import_commander32.Command("resize-confirm").desc
|
|
|
5957
6056
|
process.stderr.write(import_chalk11.default.green(`\u2713 \uC778\uC2A4\uD134\uC2A4 "${id}" resize \uD655\uC815\uC744 \uC694\uCCAD\uD588\uC2B5\uB2C8\uB2E4 (\u2192 ACTIVE).
|
|
5958
6057
|
`));
|
|
5959
6058
|
});
|
|
5960
|
-
var resizeRevertCommand = new
|
|
6059
|
+
var resizeRevertCommand = new import_commander33.Command("resize-revert").description("resize \uB97C \uB864\uBC31\uD55C\uB2E4 (VERIFY_RESIZE \u2192 ACTIVE, \uC774\uC804 flavor \uB85C \uBCF5\uADC0)").argument("<id>", "\uC778\uC2A4\uD134\uC2A4 ID").option("--region <region>", "region override (\uAE30\uBCF8: iaas \uC790\uACA9\uC99D\uBA85\uC758 region)").option("--profile <name>", "\uC0AC\uC6A9\uD560 profile \uC774\uB984").action(async (id, _opts, cmd) => {
|
|
5961
6060
|
const opts = cmd.optsWithGlobals();
|
|
5962
6061
|
const { client } = await resolveInstanceClient(opts);
|
|
5963
6062
|
startSpinner(`resize \uB864\uBC31 \uC911... (id: ${id})`);
|
|
@@ -5975,9 +6074,9 @@ var resizeRevertCommand = new import_commander32.Command("resize-revert").descri
|
|
|
5975
6074
|
});
|
|
5976
6075
|
|
|
5977
6076
|
// src/commands/instance/images.ts
|
|
5978
|
-
var
|
|
6077
|
+
var import_commander34 = require("commander");
|
|
5979
6078
|
var VISIBILITY_VALUES = ["public", "private", "shared"];
|
|
5980
|
-
var imagesCommand = new
|
|
6079
|
+
var imagesCommand = new import_commander34.Command("images").description("\uC774\uBBF8\uC9C0 \uBAA9\uB85D\uC744 \uC870\uD68C\uD55C\uB2E4 (create --image <id> \uC18C\uC2A4, \uC804\uCCB4 \uD544\uB4DC\uB294 --json)").option("--limit <n>", "\uD55C \uD398\uC774\uC9C0 \uCD5C\uB300 \uAC1C\uC218 (\uAE30\uBCF8: \uC11C\uBC84 \uAE30\uBCF8\uAC12 25)").option("--marker <id>", "\uC774 image id \uB2E4\uC74C\uBD80\uD130 \uC870\uD68C (\uD398\uC774\uC9C0\uB124\uC774\uC158)").option("--name <name>", "\uC774\uB984\uC73C\uB85C \uD544\uD130").option("--visibility <v>", `\uB178\uCD9C \uBC94\uC704 \uD544\uD130 (${VISIBILITY_VALUES.join("|")})`).option("--owner <id>", "\uC18C\uC720\uC790(\uD504\uB85C\uC81D\uD2B8 id)\uB85C \uD544\uD130").option("--status <status>", "\uC0C1\uD0DC\uB85C \uD544\uD130 (\uC608: active)").option("--region <region>", "region override (\uAE30\uBCF8: iaas \uC790\uACA9\uC99D\uBA85\uC758 region)").option("--profile <name>", "\uC0AC\uC6A9\uD560 profile \uC774\uB984").action(async (_opts, cmd) => {
|
|
5981
6080
|
const opts = cmd.optsWithGlobals();
|
|
5982
6081
|
const limit = parsePositiveIntegerOption(opts.limit, "--limit");
|
|
5983
6082
|
if (opts.visibility !== void 0 && !VISIBILITY_VALUES.includes(opts.visibility)) {
|
|
@@ -6025,8 +6124,8 @@ var imagesCommand = new import_commander33.Command("images").description("\uC774
|
|
|
6025
6124
|
});
|
|
6026
6125
|
|
|
6027
6126
|
// src/commands/instance/keypairs.ts
|
|
6028
|
-
var
|
|
6029
|
-
var keypairsCommand = new
|
|
6127
|
+
var import_commander35 = require("commander");
|
|
6128
|
+
var keypairsCommand = new import_commander35.Command("keypairs").description("\uD0A4\uD398\uC5B4 \uBAA9\uB85D\uC744 \uC870\uD68C\uD55C\uB2E4 (name\xB7fingerprint, \uC804\uCCB4 \uD544\uB4DC\uB294 --json)").option("--region <region>", "region override (\uAE30\uBCF8: iaas \uC790\uACA9\uC99D\uBA85\uC758 region)").option("--profile <name>", "\uC0AC\uC6A9\uD560 profile \uC774\uB984").action(async (_opts, cmd) => {
|
|
6030
6129
|
const opts = cmd.optsWithGlobals();
|
|
6031
6130
|
const { client } = await resolveInstanceClient(opts);
|
|
6032
6131
|
startSpinner("\uD0A4\uD398\uC5B4 \uBAA9\uB85D \uC870\uD68C \uC911...");
|
|
@@ -6047,7 +6146,7 @@ var keypairsCommand = new import_commander34.Command("keypairs").description("\u
|
|
|
6047
6146
|
});
|
|
6048
6147
|
|
|
6049
6148
|
// src/commands/instance/keypair.ts
|
|
6050
|
-
var
|
|
6149
|
+
var import_commander36 = require("commander");
|
|
6051
6150
|
var import_node_fs8 = require("fs");
|
|
6052
6151
|
var import_node_crypto5 = require("crypto");
|
|
6053
6152
|
var import_chalk12 = __toESM(require("chalk"));
|
|
@@ -6090,7 +6189,7 @@ function savePrivateKey(filePath, privateKey) {
|
|
|
6090
6189
|
);
|
|
6091
6190
|
}
|
|
6092
6191
|
}
|
|
6093
|
-
var getKeypairCmd = new
|
|
6192
|
+
var getKeypairCmd = new import_commander36.Command("get").description("\uB2E8\uC77C \uD0A4\uD398\uC5B4\uB97C \uC870\uD68C\uD55C\uB2E4").argument("<name>", "\uD0A4\uD398\uC5B4 \uC774\uB984").option("--region <region>", "region override").option("--profile <name>", "\uC0AC\uC6A9\uD560 profile \uC774\uB984").action(async (name, _opts, cmd) => {
|
|
6094
6193
|
const opts = cmd.optsWithGlobals();
|
|
6095
6194
|
const { client } = await resolveInstanceClient(opts);
|
|
6096
6195
|
startSpinner("\uD0A4\uD398\uC5B4 \uC870\uD68C \uC911...");
|
|
@@ -6115,7 +6214,7 @@ var getKeypairCmd = new import_commander35.Command("get").description("\uB2E8\uC
|
|
|
6115
6214
|
ids: [kp.name]
|
|
6116
6215
|
});
|
|
6117
6216
|
});
|
|
6118
|
-
var createKeypairCmd = new
|
|
6217
|
+
var createKeypairCmd = new import_commander36.Command("create").description("\uD0A4\uD398\uC5B4\uB97C \uC0DD\uC131\uD55C\uB2E4 (--public-key \uBBF8\uC9C0\uC815 \uC2DC NHN \uC774 \uD0A4\uC30D \uC0DD\uC131 \u2014 private_key 1\uD68C\uC131)").argument("<name>", "\uD0A4\uD398\uC5B4 \uC774\uB984").option("--public-key <path|key>", "\uAE30\uC874 \uACF5\uAC1C\uD0A4 (\uD30C\uC77C \uACBD\uB85C \uB610\uB294 \uD0A4 \uBB38\uC790\uC5F4). \uC9C0\uC815 \uC2DC private_key \uBBF8\uBC18\uD658").option("-o, --output <keyfile>", "\uC0DD\uC131\uB41C private_key \uB97C \uD30C\uC77C(mode 0600)\uB85C \uC800\uC7A5").option("--region <region>", "region override").option("--profile <name>", "\uC0AC\uC6A9\uD560 profile \uC774\uB984").action(async (name, _opts, cmd) => {
|
|
6119
6218
|
const opts = cmd.optsWithGlobals();
|
|
6120
6219
|
const publicKey = opts.publicKey !== void 0 ? resolvePublicKey(opts.publicKey) : void 0;
|
|
6121
6220
|
if (opts.output !== void 0 && publicKey !== void 0) {
|
|
@@ -6174,7 +6273,7 @@ var createKeypairCmd = new import_commander35.Command("create").description("\uD
|
|
|
6174
6273
|
ids: [meta.name]
|
|
6175
6274
|
});
|
|
6176
6275
|
});
|
|
6177
|
-
var deleteKeypairCmd = new
|
|
6276
|
+
var deleteKeypairCmd = new import_commander36.Command("delete").description("\uD0A4\uD398\uC5B4\uB97C \uC0AD\uC81C\uD55C\uB2E4").argument("<name>", "\uD0A4\uD398\uC5B4 \uC774\uB984").option("--region <region>", "region override").option("--profile <name>", "\uC0AC\uC6A9\uD560 profile \uC774\uB984").action(async (name, _opts, cmd) => {
|
|
6178
6277
|
const opts = cmd.optsWithGlobals();
|
|
6179
6278
|
const { client } = await resolveInstanceClient(opts);
|
|
6180
6279
|
startSpinner("\uD0A4\uD398\uC5B4 \uC0AD\uC81C \uC911...");
|
|
@@ -6188,12 +6287,12 @@ var deleteKeypairCmd = new import_commander35.Command("delete").description("\uD
|
|
|
6188
6287
|
process.stderr.write(import_chalk12.default.green(`\u2713 \uD0A4\uD398\uC5B4 "${name}" \uAC00 \uC0AD\uC81C\uB418\uC5C8\uC2B5\uB2C8\uB2E4.
|
|
6189
6288
|
`));
|
|
6190
6289
|
});
|
|
6191
|
-
var keypairCommand = new
|
|
6290
|
+
var keypairCommand = new import_commander36.Command("keypair").description("\uD0A4\uD398\uC5B4 \uB2E8\uAC74 \uAD00\uB9AC (get / create / delete)").addCommand(getKeypairCmd).addCommand(createKeypairCmd).addCommand(deleteKeypairCmd);
|
|
6192
6291
|
|
|
6193
6292
|
// src/commands/instance/volume.ts
|
|
6194
|
-
var
|
|
6293
|
+
var import_commander37 = require("commander");
|
|
6195
6294
|
var import_chalk13 = __toESM(require("chalk"));
|
|
6196
|
-
var attachCommand = new
|
|
6295
|
+
var attachCommand = new import_commander37.Command("attach").description("\uBCFC\uB968\uC744 \uC778\uC2A4\uD134\uC2A4\uC5D0 \uC5F0\uACB0\uD55C\uB2E4").argument("<id>", "\uC778\uC2A4\uD134\uC2A4 ID").requiredOption("--volume <volumeId>", "\uC5F0\uACB0\uD560 \uBCFC\uB968 ID").option("--region <region>", "region override (\uAE30\uBCF8: iaas \uC790\uACA9\uC99D\uBA85\uC758 region)").option("--profile <name>", "\uC0AC\uC6A9\uD560 profile \uC774\uB984").action(async (id, _opts, cmd) => {
|
|
6197
6296
|
const opts = cmd.optsWithGlobals();
|
|
6198
6297
|
const { client } = await resolveInstanceClient(opts);
|
|
6199
6298
|
startSpinner("\uBCFC\uB968 \uC5F0\uACB0 \uC911...");
|
|
@@ -6221,7 +6320,7 @@ var attachCommand = new import_commander36.Command("attach").description("\uBCFC
|
|
|
6221
6320
|
ids: [att.id]
|
|
6222
6321
|
});
|
|
6223
6322
|
});
|
|
6224
|
-
var detachCommand = new
|
|
6323
|
+
var detachCommand = new import_commander37.Command("detach").description("\uBCFC\uB968 \uC5F0\uACB0\uC744 \uD574\uC81C\uD55C\uB2E4").argument("<id>", "\uC778\uC2A4\uD134\uC2A4 ID").argument("<volumeId>", "\uD574\uC81C\uD560 \uBCFC\uB968 ID").option("--region <region>", "region override (\uAE30\uBCF8: iaas \uC790\uACA9\uC99D\uBA85\uC758 region)").option("--profile <name>", "\uC0AC\uC6A9\uD560 profile \uC774\uB984").action(async (id, volumeId, _opts, cmd) => {
|
|
6225
6324
|
const opts = cmd.optsWithGlobals();
|
|
6226
6325
|
const { client } = await resolveInstanceClient(opts);
|
|
6227
6326
|
startSpinner("\uBCFC\uB968 \uC5F0\uACB0 \uD574\uC81C \uC911...");
|
|
@@ -6237,15 +6336,15 @@ var detachCommand = new import_commander36.Command("detach").description("\uBCFC
|
|
|
6237
6336
|
`)
|
|
6238
6337
|
);
|
|
6239
6338
|
});
|
|
6240
|
-
var volumeCommand = new
|
|
6339
|
+
var volumeCommand = new import_commander37.Command("volume").description(
|
|
6241
6340
|
"\uC778\uC2A4\uD134\uC2A4 \uBCFC\uB968 \uC5F0\uACB0/\uD574\uC81C"
|
|
6242
6341
|
);
|
|
6243
6342
|
volumeCommand.addCommand(attachCommand);
|
|
6244
6343
|
volumeCommand.addCommand(detachCommand);
|
|
6245
6344
|
|
|
6246
6345
|
// src/commands/instance/volumes.ts
|
|
6247
|
-
var
|
|
6248
|
-
var volumesCommand = new
|
|
6346
|
+
var import_commander38 = require("commander");
|
|
6347
|
+
var volumesCommand = new import_commander38.Command("volumes").description("\uC778\uC2A4\uD134\uC2A4\uC5D0 \uC5F0\uACB0\uB41C \uBCFC\uB968 \uBAA9\uB85D\uC744 \uC870\uD68C\uD55C\uB2E4").argument("<id>", "\uC778\uC2A4\uD134\uC2A4 ID").option("--region <region>", "region override (\uAE30\uBCF8: iaas \uC790\uACA9\uC99D\uBA85\uC758 region)").option("--profile <name>", "\uC0AC\uC6A9\uD560 profile \uC774\uB984").action(async (id, _opts, cmd) => {
|
|
6249
6348
|
const opts = cmd.optsWithGlobals();
|
|
6250
6349
|
const { client } = await resolveInstanceClient(opts);
|
|
6251
6350
|
startSpinner("\uBCFC\uB968 \uBAA9\uB85D \uC870\uD68C \uC911...");
|
|
@@ -6266,7 +6365,7 @@ var volumesCommand = new import_commander37.Command("volumes").description("\uC7
|
|
|
6266
6365
|
});
|
|
6267
6366
|
|
|
6268
6367
|
// src/commands/ncr/list.ts
|
|
6269
|
-
var
|
|
6368
|
+
var import_commander39 = require("commander");
|
|
6270
6369
|
|
|
6271
6370
|
// src/services/ncr/harbor-client.ts
|
|
6272
6371
|
var import_ky12 = __toESM(require("ky"));
|
|
@@ -6355,8 +6454,9 @@ var HarborClient = class {
|
|
|
6355
6454
|
async function createNcrClient(opts) {
|
|
6356
6455
|
const profileName = await resolveProfileName(opts.profile);
|
|
6357
6456
|
const uak = await getUserAccessKey(profileName);
|
|
6457
|
+
const environment = await getProfileEnvironment(profileName);
|
|
6358
6458
|
const region = opts.region ?? "kr1";
|
|
6359
|
-
return { client: new NcrClient(uak.id, uak.secret, region), profileName };
|
|
6459
|
+
return { client: new NcrClient(uak.id, uak.secret, region, environment), profileName };
|
|
6360
6460
|
}
|
|
6361
6461
|
async function resolveAppKey(profileName) {
|
|
6362
6462
|
return resolveServiceAppKey(
|
|
@@ -6393,7 +6493,7 @@ function parseHarborHost(uri) {
|
|
|
6393
6493
|
}
|
|
6394
6494
|
|
|
6395
6495
|
// src/commands/ncr/list.ts
|
|
6396
|
-
var listCommand5 = new
|
|
6496
|
+
var listCommand5 = new import_commander39.Command("list").description("NCR \uB808\uC9C0\uC2A4\uD2B8\uB9AC \uBAA9\uB85D\uC744 \uC870\uD68C\uD55C\uB2E4").option("--region <region>", "NCR region (\uAE30\uBCF8: kr1)", "kr1").option("--profile <name>", "\uC0AC\uC6A9\uD560 profile \uC774\uB984").action(async (_opts, cmd) => {
|
|
6397
6497
|
const opts = cmd.optsWithGlobals();
|
|
6398
6498
|
const { client, profileName } = await createNcrClient(opts);
|
|
6399
6499
|
const appKey = await resolveAppKey(profileName);
|
|
@@ -6419,8 +6519,8 @@ var listCommand5 = new import_commander38.Command("list").description("NCR \uB80
|
|
|
6419
6519
|
});
|
|
6420
6520
|
|
|
6421
6521
|
// src/commands/ncr/get.ts
|
|
6422
|
-
var
|
|
6423
|
-
var getCommand3 = new
|
|
6522
|
+
var import_commander40 = require("commander");
|
|
6523
|
+
var getCommand3 = new import_commander40.Command("get").description("\uB2E8\uC77C NCR \uB808\uC9C0\uC2A4\uD2B8\uB9AC\uB97C \uC870\uD68C\uD55C\uB2E4").argument("<registry>", "\uB808\uC9C0\uC2A4\uD2B8\uB9AC \uC774\uB984 \uB610\uB294 ID").option("--region <region>", "NCR region (\uAE30\uBCF8: kr1)", "kr1").option("--profile <name>", "\uC0AC\uC6A9\uD560 profile \uC774\uB984").action(async (registry, _opts, cmd) => {
|
|
6424
6524
|
const opts = cmd.optsWithGlobals();
|
|
6425
6525
|
if (!registry.trim()) {
|
|
6426
6526
|
throw new NhnCloudCliError(
|
|
@@ -6448,8 +6548,8 @@ var getCommand3 = new import_commander39.Command("get").description("\uB2E8\uC77
|
|
|
6448
6548
|
});
|
|
6449
6549
|
|
|
6450
6550
|
// src/commands/ncr/images.ts
|
|
6451
|
-
var
|
|
6452
|
-
var imagesCommand2 = new
|
|
6551
|
+
var import_commander41 = require("commander");
|
|
6552
|
+
var imagesCommand2 = new import_commander41.Command("images").description("\uB808\uC9C0\uC2A4\uD2B8\uB9AC\uC758 \uC774\uBBF8\uC9C0(repository) \uBAA9\uB85D\uC744 \uC870\uD68C\uD55C\uB2E4").argument("<registry>", "\uB808\uC9C0\uC2A4\uD2B8\uB9AC \uC774\uB984").option("--region <region>", "NCR region (\uAE30\uBCF8: kr1)", "kr1").option("--profile <name>", "\uC0AC\uC6A9\uD560 profile \uC774\uB984").action(async (registry, _opts, cmd) => {
|
|
6453
6553
|
const opts = cmd.optsWithGlobals();
|
|
6454
6554
|
if (!registry.trim()) {
|
|
6455
6555
|
throw new NhnCloudCliError(
|
|
@@ -6483,8 +6583,8 @@ var imagesCommand2 = new import_commander40.Command("images").description("\uB80
|
|
|
6483
6583
|
});
|
|
6484
6584
|
|
|
6485
6585
|
// src/commands/ncr/tags.ts
|
|
6486
|
-
var
|
|
6487
|
-
var tagsCommand = new
|
|
6586
|
+
var import_commander42 = require("commander");
|
|
6587
|
+
var tagsCommand = new import_commander42.Command("tags").description("\uD2B9\uC815 \uC774\uBBF8\uC9C0\uC758 \uD0DC\uADF8 \uBAA9\uB85D\uC744 \uC870\uD68C\uD55C\uB2E4").argument("<registry>", "\uB808\uC9C0\uC2A4\uD2B8\uB9AC \uC774\uB984").argument("<repository>", "\uC774\uBBF8\uC9C0(repository) \uC774\uB984 (\uC9E7\uC740 \uC774\uB984 \uB610\uB294 {project}/{repo})").option("--region <region>", "NCR region (\uAE30\uBCF8: kr1)", "kr1").option("--profile <name>", "\uC0AC\uC6A9\uD560 profile \uC774\uB984").action(async (registry, repository, _opts, cmd) => {
|
|
6488
6588
|
const opts = cmd.optsWithGlobals();
|
|
6489
6589
|
if (!registry.trim()) {
|
|
6490
6590
|
throw new NhnCloudCliError(
|
|
@@ -6525,7 +6625,7 @@ var tagsCommand = new import_commander41.Command("tags").description("\uD2B9\uC8
|
|
|
6525
6625
|
});
|
|
6526
6626
|
|
|
6527
6627
|
// src/commands/commands.ts
|
|
6528
|
-
var
|
|
6628
|
+
var import_commander43 = require("commander");
|
|
6529
6629
|
function commandPath(command) {
|
|
6530
6630
|
const names = [];
|
|
6531
6631
|
let current2 = command;
|
|
@@ -6563,7 +6663,7 @@ function collectCommandCatalog(program2) {
|
|
|
6563
6663
|
return { commands };
|
|
6564
6664
|
}
|
|
6565
6665
|
function createCommandsCommand(program2) {
|
|
6566
|
-
return new
|
|
6666
|
+
return new import_commander43.Command("commands").description("\uBA85\uB839 \uACBD\uB85C\uC640 \uC635\uC158 catalog\uB97C \uCD9C\uB825\uD55C\uB2E4").action((_opts, cmd) => {
|
|
6567
6667
|
const opts = cmd.optsWithGlobals();
|
|
6568
6668
|
const catalog = collectCommandCatalog(program2);
|
|
6569
6669
|
output(opts, {
|
|
@@ -6580,7 +6680,7 @@ function createCommandsCommand(program2) {
|
|
|
6580
6680
|
}
|
|
6581
6681
|
|
|
6582
6682
|
// src/commands/nks/supports.ts
|
|
6583
|
-
var
|
|
6683
|
+
var import_commander44 = require("commander");
|
|
6584
6684
|
|
|
6585
6685
|
// src/commands/nks/helpers.ts
|
|
6586
6686
|
var import_promises6 = require("fs/promises");
|
|
@@ -7153,7 +7253,7 @@ function parseNonNegativeInteger(value, optionName) {
|
|
|
7153
7253
|
}
|
|
7154
7254
|
|
|
7155
7255
|
// src/commands/nks/supports.ts
|
|
7156
|
-
var supportsCommand = new
|
|
7256
|
+
var supportsCommand = new import_commander44.Command("supports").description("NKS \uC9C0\uC6D0 Kubernetes \uBC84\uC804\uACFC event type \uC744 \uC870\uD68C\uD55C\uB2E4").option("--region <region>", "region override (\uAE30\uBCF8: iaas \uC790\uACA9\uC99D\uBA85\uC758 region)").option("--profile <name>", "\uC0AC\uC6A9\uD560 profile \uC774\uB984").action(async (_opts, cmd) => {
|
|
7157
7257
|
const opts = cmd.optsWithGlobals();
|
|
7158
7258
|
const { client } = await resolveNksClient(opts);
|
|
7159
7259
|
startSpinner("NKS \uC9C0\uC6D0 \uC815\uBCF4 \uC870\uD68C \uC911...");
|
|
@@ -7178,9 +7278,9 @@ var supportsCommand = new import_commander43.Command("supports").description("NK
|
|
|
7178
7278
|
|
|
7179
7279
|
// src/commands/nks/cluster.ts
|
|
7180
7280
|
var import_promises7 = require("fs/promises");
|
|
7181
|
-
var
|
|
7281
|
+
var import_commander45 = require("commander");
|
|
7182
7282
|
var import_chalk14 = __toESM(require("chalk"));
|
|
7183
|
-
var listCommand6 = new
|
|
7283
|
+
var listCommand6 = new import_commander45.Command("list").description("NKS \uD074\uB7EC\uC2A4\uD130 \uBAA9\uB85D\uC744 \uC870\uD68C\uD55C\uB2E4").option("--region <region>", "region override (\uAE30\uBCF8: iaas \uC790\uACA9\uC99D\uBA85\uC758 region)").option("--profile <name>", "\uC0AC\uC6A9\uD560 profile \uC774\uB984").action(async (_opts, cmd) => {
|
|
7184
7284
|
const opts = cmd.optsWithGlobals();
|
|
7185
7285
|
const { client } = await resolveNksClient(opts);
|
|
7186
7286
|
startSpinner("NKS \uD074\uB7EC\uC2A4\uD130 \uBAA9\uB85D \uC870\uD68C \uC911...");
|
|
@@ -7286,7 +7386,7 @@ async function writeKubeconfigFile(path5, contents, force) {
|
|
|
7286
7386
|
throw err;
|
|
7287
7387
|
}
|
|
7288
7388
|
}
|
|
7289
|
-
var createCommand4 = new
|
|
7389
|
+
var createCommand4 = new import_commander45.Command("create").description("NKS \uD074\uB7EC\uC2A4\uD130\uB97C \uC0DD\uC131\uD55C\uB2E4").requiredOption("--file <json>", "\uACF5\uC2DD API payload JSON \uD30C\uC77C").option("--region <region>", "region override (\uAE30\uBCF8: iaas \uC790\uACA9\uC99D\uBA85\uC758 region)").option("--profile <name>", "\uC0AC\uC6A9\uD560 profile \uC774\uB984").action(async (_opts, cmd) => {
|
|
7290
7390
|
const opts = cmd.optsWithGlobals();
|
|
7291
7391
|
const payload = await readJsonFile(opts.file);
|
|
7292
7392
|
const { client } = await resolveNksClient(opts);
|
|
@@ -7301,7 +7401,7 @@ var createCommand4 = new import_commander44.Command("create").description("NKS \
|
|
|
7301
7401
|
stopSpinner(true);
|
|
7302
7402
|
uuidOutput(opts, result, "\uD074\uB7EC\uC2A4\uD130 \uC0DD\uC131");
|
|
7303
7403
|
});
|
|
7304
|
-
var deleteCommand3 = new
|
|
7404
|
+
var deleteCommand3 = new import_commander45.Command("delete").description("NKS \uD074\uB7EC\uC2A4\uD130\uB97C \uC0AD\uC81C\uD55C\uB2E4").argument("<cluster>", "\uD074\uB7EC\uC2A4\uD130 UUID \uB610\uB294 \uC774\uB984").option("--yes", "\uD655\uC778 \uD504\uB86C\uD504\uD2B8 \uC0DD\uB7B5 (CI/\uBE44\uB300\uD654\uD615 \uD544\uC218)").option("--region <region>", "region override (\uAE30\uBCF8: iaas \uC790\uACA9\uC99D\uBA85\uC758 region)").option("--profile <name>", "\uC0AC\uC6A9\uD560 profile \uC774\uB984").action(async (cluster, _opts, cmd) => {
|
|
7305
7405
|
const opts = cmd.optsWithGlobals();
|
|
7306
7406
|
const ok = await confirmDangerousAction(`NKS \uD074\uB7EC\uC2A4\uD130 "${cluster}" \uB97C \uC0AD\uC81C\uD558\uC2DC\uACA0\uC2B5\uB2C8\uAE4C?`, opts.yes);
|
|
7307
7407
|
if (!ok) return;
|
|
@@ -7317,7 +7417,7 @@ var deleteCommand3 = new import_commander44.Command("delete").description("NKS \
|
|
|
7317
7417
|
process.stderr.write(import_chalk14.default.green(`\u2713 NKS \uD074\uB7EC\uC2A4\uD130 "${cluster}" \uC0AD\uC81C \uC694\uCCAD \uC644\uB8CC
|
|
7318
7418
|
`));
|
|
7319
7419
|
});
|
|
7320
|
-
var resizeCommand2 = new
|
|
7420
|
+
var resizeCommand2 = new import_commander45.Command("resize").description("NKS \uD074\uB7EC\uC2A4\uD130 \uB178\uB4DC \uADF8\uB8F9 \uD06C\uAE30\uB97C \uBCC0\uACBD\uD55C\uB2E4").argument("<cluster>", "\uD074\uB7EC\uC2A4\uD130 UUID \uB610\uB294 \uC774\uB984").requiredOption("--nodegroup <name-or-uuid>", "\uB178\uB4DC \uADF8\uB8F9 UUID \uB610\uB294 \uC774\uB984").requiredOption("--node-count <n>", "\uBCC0\uACBD\uD560 \uB178\uB4DC \uC218").option("--nodes-to-remove <csv>", "\uC0AD\uC81C\uD560 \uB178\uB4DC \uC774\uB984/ID CSV").option("--region <region>", "region override (\uAE30\uBCF8: iaas \uC790\uACA9\uC99D\uBA85\uC758 region)").option("--profile <name>", "\uC0AC\uC6A9\uD560 profile \uC774\uB984").action(async (cluster, _opts, cmd) => {
|
|
7321
7421
|
const opts = cmd.optsWithGlobals();
|
|
7322
7422
|
const nodeCount = parsePositiveInteger(opts.nodeCount, "--node-count");
|
|
7323
7423
|
const nodesToRemove = opts.nodesToRemove?.split(",").map((node) => node.trim()).filter(Boolean);
|
|
@@ -7341,7 +7441,7 @@ var resizeCommand2 = new import_commander44.Command("resize").description("NKS \
|
|
|
7341
7441
|
stopSpinner(true);
|
|
7342
7442
|
uuidOutput(opts, result, "\uD074\uB7EC\uC2A4\uD130 resize");
|
|
7343
7443
|
});
|
|
7344
|
-
var setIpAclCommand = new
|
|
7444
|
+
var setIpAclCommand = new import_commander45.Command("set-ipacl").description("NKS \uD074\uB7EC\uC2A4\uD130 API endpoint IP ACL \uC744 \uC124\uC815\uD55C\uB2E4").argument("<cluster>", "\uD074\uB7EC\uC2A4\uD130 UUID \uB610\uB294 \uC774\uB984").requiredOption("--file <json>", "\uACF5\uC2DD API payload JSON \uD30C\uC77C").option("--region <region>", "region override (\uAE30\uBCF8: iaas \uC790\uACA9\uC99D\uBA85\uC758 region)").option("--profile <name>", "\uC0AC\uC6A9\uD560 profile \uC774\uB984").action(async (cluster, _opts, cmd) => {
|
|
7345
7445
|
const opts = cmd.optsWithGlobals();
|
|
7346
7446
|
const payload = await readJsonFile(opts.file);
|
|
7347
7447
|
const { client } = await resolveNksClient(opts);
|
|
@@ -7356,7 +7456,7 @@ var setIpAclCommand = new import_commander44.Command("set-ipacl").description("N
|
|
|
7356
7456
|
stopSpinner(true);
|
|
7357
7457
|
uuidOutput(opts, result, "IP ACL \uC124\uC815");
|
|
7358
7458
|
});
|
|
7359
|
-
var renewCertificateCommand = new
|
|
7459
|
+
var renewCertificateCommand = new import_commander45.Command("renew-certificate").description("NKS \uD074\uB7EC\uC2A4\uD130 \uC778\uC99D\uC11C\uB97C \uAC31\uC2E0\uD55C\uB2E4").argument("<cluster>", "\uD074\uB7EC\uC2A4\uD130 UUID \uB610\uB294 \uC774\uB984").requiredOption("--term-of-validity <1-5>", "\uC778\uC99D\uC11C \uC720\uD6A8 \uAE30\uAC04(\uB144)").option("--region <region>", "region override (\uAE30\uBCF8: iaas \uC790\uACA9\uC99D\uBA85\uC758 region)").option("--profile <name>", "\uC0AC\uC6A9\uD560 profile \uC774\uB984").action(async (cluster, _opts, cmd) => {
|
|
7360
7460
|
const opts = cmd.optsWithGlobals();
|
|
7361
7461
|
const term = parsePositiveInteger(opts.termOfValidity, "--term-of-validity");
|
|
7362
7462
|
if (term < 1 || term > 5) {
|
|
@@ -7374,7 +7474,7 @@ var renewCertificateCommand = new import_commander44.Command("renew-certificate"
|
|
|
7374
7474
|
stopSpinner(true);
|
|
7375
7475
|
uuidOutput(opts, result, "\uC778\uC99D\uC11C \uAC31\uC2E0");
|
|
7376
7476
|
});
|
|
7377
|
-
var updateSgwCommand = new
|
|
7477
|
+
var updateSgwCommand = new import_commander45.Command("update-sgw").description("NKS \uD074\uB7EC\uC2A4\uD130 \uC11C\uBE44\uC2A4 \uAC8C\uC774\uD2B8\uC6E8\uC774\uB97C \uBCC0\uACBD\uD55C\uB2E4").argument("<cluster>", "\uD074\uB7EC\uC2A4\uD130 UUID \uB610\uB294 \uC774\uB984").requiredOption("--ncr-sgw <uuid>", "NCR service gateway UUID").requiredOption("--obs-sgw <uuid>", "Object Storage service gateway UUID").option("--region <region>", "region override (\uAE30\uBCF8: iaas \uC790\uACA9\uC99D\uBA85\uC758 region)").option("--profile <name>", "\uC0AC\uC6A9\uD560 profile \uC774\uB984").action(async (cluster, _opts, cmd) => {
|
|
7378
7478
|
const opts = cmd.optsWithGlobals();
|
|
7379
7479
|
const { client } = await resolveNksClient(opts);
|
|
7380
7480
|
startSpinner("NKS \uC11C\uBE44\uC2A4 \uAC8C\uC774\uD2B8\uC6E8\uC774 \uBCC0\uACBD \uC694\uCCAD \uC911...");
|
|
@@ -7388,7 +7488,7 @@ var updateSgwCommand = new import_commander44.Command("update-sgw").description(
|
|
|
7388
7488
|
stopSpinner(true);
|
|
7389
7489
|
uuidOutput(opts, result, "\uC11C\uBE44\uC2A4 \uAC8C\uC774\uD2B8\uC6E8\uC774 \uBCC0\uACBD");
|
|
7390
7490
|
});
|
|
7391
|
-
var setControlPlaneLogCommand = new
|
|
7491
|
+
var setControlPlaneLogCommand = new import_commander45.Command("set-control-plane-log").description("NKS \uD074\uB7EC\uC2A4\uD130 control plane log \uC124\uC815\uC744 \uBCC0\uACBD\uD55C\uB2E4").argument("<cluster>", "\uD074\uB7EC\uC2A4\uD130 UUID \uB610\uB294 \uC774\uB984").requiredOption("--file <json>", "control_plane_log \uAC1D\uCCB4 JSON \uD30C\uC77C").option("--region <region>", "region override (\uAE30\uBCF8: iaas \uC790\uACA9\uC99D\uBA85\uC758 region)").option("--profile <name>", "\uC0AC\uC6A9\uD560 profile \uC774\uB984").action(async (cluster, _opts, cmd) => {
|
|
7392
7492
|
const opts = cmd.optsWithGlobals();
|
|
7393
7493
|
const controlPlaneLog = await readJsonFile(opts.file);
|
|
7394
7494
|
const { client } = await resolveNksClient(opts);
|
|
@@ -7403,7 +7503,7 @@ var setControlPlaneLogCommand = new import_commander44.Command("set-control-plan
|
|
|
7403
7503
|
stopSpinner(true);
|
|
7404
7504
|
uuidOutput(opts, result, "control plane log \uC124\uC815");
|
|
7405
7505
|
});
|
|
7406
|
-
var getCommand4 = new
|
|
7506
|
+
var getCommand4 = new import_commander45.Command("get").description("NKS \uD074\uB7EC\uC2A4\uD130\uB97C \uC870\uD68C\uD55C\uB2E4").argument("<cluster>", "\uD074\uB7EC\uC2A4\uD130 UUID \uB610\uB294 \uC774\uB984").option("--region <region>", "region override (\uAE30\uBCF8: iaas \uC790\uACA9\uC99D\uBA85\uC758 region)").option("--profile <name>", "\uC0AC\uC6A9\uD560 profile \uC774\uB984").action(async (cluster, _opts, cmd) => {
|
|
7407
7507
|
const opts = cmd.optsWithGlobals();
|
|
7408
7508
|
const { client } = await resolveNksClient(opts);
|
|
7409
7509
|
startSpinner("NKS \uD074\uB7EC\uC2A4\uD130 \uC870\uD68C \uC911...");
|
|
@@ -7422,7 +7522,7 @@ var getCommand4 = new import_commander44.Command("get").description("NKS \uD074\
|
|
|
7422
7522
|
ids: [resourceId(result)]
|
|
7423
7523
|
});
|
|
7424
7524
|
});
|
|
7425
|
-
var eventsCommand = new
|
|
7525
|
+
var eventsCommand = new import_commander45.Command("events").description("NKS \uD074\uB7EC\uC2A4\uD130 \uC791\uC5C5 \uC774\uB825\uC744 \uC870\uD68C\uD55C\uB2E4").argument("<cluster>", "\uD074\uB7EC\uC2A4\uD130 UUID \uB610\uB294 \uC774\uB984").option("--region <region>", "region override (\uAE30\uBCF8: iaas \uC790\uACA9\uC99D\uBA85\uC758 region)").option("--profile <name>", "\uC0AC\uC6A9\uD560 profile \uC774\uB984").action(async (cluster, _opts, cmd) => {
|
|
7426
7526
|
const opts = cmd.optsWithGlobals();
|
|
7427
7527
|
const { client } = await resolveNksClient(opts);
|
|
7428
7528
|
startSpinner("NKS \uD074\uB7EC\uC2A4\uD130 \uC791\uC5C5 \uC774\uB825 \uC870\uD68C \uC911...");
|
|
@@ -7443,7 +7543,7 @@ var eventsCommand = new import_commander44.Command("events").description("NKS \u
|
|
|
7443
7543
|
ids: events.map((event) => event.uuid)
|
|
7444
7544
|
});
|
|
7445
7545
|
});
|
|
7446
|
-
var eventCommand = new
|
|
7546
|
+
var eventCommand = new import_commander45.Command("event").description("NKS \uD074\uB7EC\uC2A4\uD130 \uC791\uC5C5 \uC774\uB825 \uB2E8\uAC74\uC744 \uC870\uD68C\uD55C\uB2E4").argument("<cluster>", "\uD074\uB7EC\uC2A4\uD130 UUID \uB610\uB294 \uC774\uB984").argument("<event>", "\uC791\uC5C5 \uC774\uB825 UUID (\uC815\uC218 id \uAC00 \uC544\uB2C8\uB2E4)").option("--region <region>", "region override (\uAE30\uBCF8: iaas \uC790\uACA9\uC99D\uBA85\uC758 region)").option("--profile <name>", "\uC0AC\uC6A9\uD560 profile \uC774\uB984").action(async (cluster, event, _opts, cmd) => {
|
|
7447
7547
|
const opts = cmd.optsWithGlobals();
|
|
7448
7548
|
if (!isUuid(event)) {
|
|
7449
7549
|
throw new NhnCloudCliError(
|
|
@@ -7472,7 +7572,7 @@ var eventCommand = new import_commander44.Command("event").description("NKS \uD0
|
|
|
7472
7572
|
ids: [result.uuid]
|
|
7473
7573
|
});
|
|
7474
7574
|
});
|
|
7475
|
-
var kubeconfigCommand = new
|
|
7575
|
+
var kubeconfigCommand = new import_commander45.Command("kubeconfig").description("NKS \uD074\uB7EC\uC2A4\uD130 kubeconfig \uB97C \uCD9C\uB825\uD558\uAC70\uB098 \uC800\uC7A5\uD55C\uB2E4").argument("<cluster>", "\uD074\uB7EC\uC2A4\uD130 UUID \uB610\uB294 \uC774\uB984").option("--output <file>", "kubeconfig \uC800\uC7A5 \uACBD\uB85C").option("--force", "\uAE30\uC874 \uD30C\uC77C \uB36E\uC5B4\uC4F0\uAE30").option("--region <region>", "region override (\uAE30\uBCF8: iaas \uC790\uACA9\uC99D\uBA85\uC758 region)").option("--profile <name>", "\uC0AC\uC6A9\uD560 profile \uC774\uB984").action(async (cluster, _opts, cmd) => {
|
|
7476
7576
|
const opts = cmd.optsWithGlobals();
|
|
7477
7577
|
const { client } = await resolveNksClient(opts);
|
|
7478
7578
|
startSpinner("NKS kubeconfig \uC870\uD68C \uC911...");
|
|
@@ -7492,7 +7592,7 @@ var kubeconfigCommand = new import_commander44.Command("kubeconfig").description
|
|
|
7492
7592
|
}
|
|
7493
7593
|
process.stdout.write(kubeconfig.endsWith("\n") ? kubeconfig : kubeconfig + "\n");
|
|
7494
7594
|
});
|
|
7495
|
-
var ipAclCommand = new
|
|
7595
|
+
var ipAclCommand = new import_commander45.Command("ipacl").description("NKS \uD074\uB7EC\uC2A4\uD130 API endpoint IP ACL \uC744 \uC870\uD68C\uD55C\uB2E4").argument("<cluster>", "\uD074\uB7EC\uC2A4\uD130 UUID \uB610\uB294 \uC774\uB984").option("--region <region>", "region override (\uAE30\uBCF8: iaas \uC790\uACA9\uC99D\uBA85\uC758 region)").option("--profile <name>", "\uC0AC\uC6A9\uD560 profile \uC774\uB984").action(async (cluster, _opts, cmd) => {
|
|
7496
7596
|
const opts = cmd.optsWithGlobals();
|
|
7497
7597
|
const { client } = await resolveNksClient(opts);
|
|
7498
7598
|
startSpinner("NKS IP ACL \uC870\uD68C \uC911...");
|
|
@@ -7511,7 +7611,7 @@ var ipAclCommand = new import_commander44.Command("ipacl").description("NKS \uD0
|
|
|
7511
7611
|
ids: [result.cluster_uuid]
|
|
7512
7612
|
});
|
|
7513
7613
|
});
|
|
7514
|
-
var clusterAddonListCommand = new
|
|
7614
|
+
var clusterAddonListCommand = new import_commander45.Command("list").description("NKS \uD074\uB7EC\uC2A4\uD130\uC5D0 \uC124\uCE58\uB41C \uC560\uB4DC\uC628 \uBAA9\uB85D\uC744 \uC870\uD68C\uD55C\uB2E4").argument("<cluster>", "\uD074\uB7EC\uC2A4\uD130 UUID \uB610\uB294 \uC774\uB984").option("--region <region>", "region override (\uAE30\uBCF8: iaas \uC790\uACA9\uC99D\uBA85\uC758 region)").option("--profile <name>", "\uC0AC\uC6A9\uD560 profile \uC774\uB984").action(async (cluster, _opts, cmd) => {
|
|
7515
7615
|
const opts = cmd.optsWithGlobals();
|
|
7516
7616
|
const { client } = await resolveNksClient(opts);
|
|
7517
7617
|
startSpinner("NKS \uD074\uB7EC\uC2A4\uD130 \uC560\uB4DC\uC628 \uBAA9\uB85D \uC870\uD68C \uC911...");
|
|
@@ -7530,7 +7630,7 @@ var clusterAddonListCommand = new import_commander44.Command("list").description
|
|
|
7530
7630
|
ids: addons.map((addon) => addon.uuid ?? addon.id ?? addon.name)
|
|
7531
7631
|
});
|
|
7532
7632
|
});
|
|
7533
|
-
var clusterAddonGetCommand = new
|
|
7633
|
+
var clusterAddonGetCommand = new import_commander45.Command("get").description("NKS \uD074\uB7EC\uC2A4\uD130\uC5D0 \uC124\uCE58\uB41C \uC560\uB4DC\uC628\uC744 \uC870\uD68C\uD55C\uB2E4").argument("<cluster>", "\uD074\uB7EC\uC2A4\uD130 UUID \uB610\uB294 \uC774\uB984").argument("<addon>", "\uC560\uB4DC\uC628 UUID \uB610\uB294 \uC774\uB984").option("--region <region>", "region override (\uAE30\uBCF8: iaas \uC790\uACA9\uC99D\uBA85\uC758 region)").option("--profile <name>", "\uC0AC\uC6A9\uD560 profile \uC774\uB984").action(async (cluster, addon, _opts, cmd) => {
|
|
7534
7634
|
const opts = cmd.optsWithGlobals();
|
|
7535
7635
|
const { client } = await resolveNksClient(opts);
|
|
7536
7636
|
startSpinner("NKS \uD074\uB7EC\uC2A4\uD130 \uC560\uB4DC\uC628 \uC870\uD68C \uC911...");
|
|
@@ -7558,7 +7658,7 @@ function parseResolveConflicts(value) {
|
|
|
7558
7658
|
EXIT_PARAM_ERROR
|
|
7559
7659
|
);
|
|
7560
7660
|
}
|
|
7561
|
-
var clusterAddonInstallCommand = new
|
|
7661
|
+
var clusterAddonInstallCommand = new import_commander45.Command("install").description("NKS \uD074\uB7EC\uC2A4\uD130 \uC560\uB4DC\uC628\uC744 \uC124\uCE58\uD55C\uB2E4").argument("<cluster>", "\uD074\uB7EC\uC2A4\uD130 UUID \uB610\uB294 \uC774\uB984").requiredOption("--name <name>", "\uC560\uB4DC\uC628 \uC774\uB984").requiredOption("--addon-version <version>", "\uC560\uB4DC\uC628 \uBC84\uC804").requiredOption("--resolve-conflicts <none|overwrite|preserve>", "\uCDA9\uB3CC \uD574\uACB0 \uC815\uCC45").option("--region <region>", "region override (\uAE30\uBCF8: iaas \uC790\uACA9\uC99D\uBA85\uC758 region)").option("--profile <name>", "\uC0AC\uC6A9\uD560 profile \uC774\uB984").action(async (cluster, _opts, cmd) => {
|
|
7562
7662
|
const opts = cmd.optsWithGlobals();
|
|
7563
7663
|
const resolveConflicts = parseResolveConflicts(opts.resolveConflicts);
|
|
7564
7664
|
const { client } = await resolveNksClient(opts);
|
|
@@ -7577,7 +7677,7 @@ var clusterAddonInstallCommand = new import_commander44.Command("install").descr
|
|
|
7577
7677
|
stopSpinner(true);
|
|
7578
7678
|
uuidOutput(opts, result, "\uD074\uB7EC\uC2A4\uD130 \uC560\uB4DC\uC628 \uC124\uCE58");
|
|
7579
7679
|
});
|
|
7580
|
-
var clusterAddonUpdateCommand = new
|
|
7680
|
+
var clusterAddonUpdateCommand = new import_commander45.Command("update").description("NKS \uD074\uB7EC\uC2A4\uD130 \uC560\uB4DC\uC628\uC744 \uC5C5\uB370\uC774\uD2B8\uD55C\uB2E4").argument("<cluster>", "\uD074\uB7EC\uC2A4\uD130 UUID \uB610\uB294 \uC774\uB984").argument("<addon>", "\uC560\uB4DC\uC628 UUID \uB610\uB294 \uC774\uB984").requiredOption("--addon-version <version>", "\uC560\uB4DC\uC628 \uBC84\uC804").requiredOption("--resolve-conflicts <none|overwrite|preserve>", "\uCDA9\uB3CC \uD574\uACB0 \uC815\uCC45").option("--region <region>", "region override (\uAE30\uBCF8: iaas \uC790\uACA9\uC99D\uBA85\uC758 region)").option("--profile <name>", "\uC0AC\uC6A9\uD560 profile \uC774\uB984").action(async (cluster, addon, _opts, cmd) => {
|
|
7581
7681
|
const opts = cmd.optsWithGlobals();
|
|
7582
7682
|
const resolveConflicts = parseResolveConflicts(opts.resolveConflicts);
|
|
7583
7683
|
const { client } = await resolveNksClient(opts);
|
|
@@ -7595,7 +7695,7 @@ var clusterAddonUpdateCommand = new import_commander44.Command("update").descrip
|
|
|
7595
7695
|
stopSpinner(true);
|
|
7596
7696
|
uuidOutput(opts, result, "\uD074\uB7EC\uC2A4\uD130 \uC560\uB4DC\uC628 \uC5C5\uB370\uC774\uD2B8");
|
|
7597
7697
|
});
|
|
7598
|
-
var clusterAddonRemoveCommand = new
|
|
7698
|
+
var clusterAddonRemoveCommand = new import_commander45.Command("remove").description("NKS \uD074\uB7EC\uC2A4\uD130 \uC560\uB4DC\uC628\uC744 \uC81C\uAC70\uD55C\uB2E4").argument("<cluster>", "\uD074\uB7EC\uC2A4\uD130 UUID \uB610\uB294 \uC774\uB984").argument("<addon>", "\uC560\uB4DC\uC628 UUID \uB610\uB294 \uC774\uB984").option("--yes", "\uD655\uC778 \uD504\uB86C\uD504\uD2B8 \uC0DD\uB7B5 (CI/\uBE44\uB300\uD654\uD615 \uD544\uC218)").option("--region <region>", "region override (\uAE30\uBCF8: iaas \uC790\uACA9\uC99D\uBA85\uC758 region)").option("--profile <name>", "\uC0AC\uC6A9\uD560 profile \uC774\uB984").action(async (cluster, addon, _opts, cmd) => {
|
|
7599
7699
|
const opts = cmd.optsWithGlobals();
|
|
7600
7700
|
const ok = await confirmDangerousAction(`NKS \uD074\uB7EC\uC2A4\uD130 \uC560\uB4DC\uC628 "${addon}" \uC744 \uC81C\uAC70\uD558\uC2DC\uACA0\uC2B5\uB2C8\uAE4C?`, opts.yes);
|
|
7601
7701
|
if (!ok) return;
|
|
@@ -7611,11 +7711,11 @@ var clusterAddonRemoveCommand = new import_commander44.Command("remove").descrip
|
|
|
7611
7711
|
stopSpinner(true);
|
|
7612
7712
|
uuidOutput(opts, result, "\uD074\uB7EC\uC2A4\uD130 \uC560\uB4DC\uC628 \uC81C\uAC70");
|
|
7613
7713
|
});
|
|
7614
|
-
var clusterAddonCommand = new
|
|
7615
|
-
var clusterCommand = new
|
|
7714
|
+
var clusterAddonCommand = new import_commander45.Command("addon").description("NKS \uD074\uB7EC\uC2A4\uD130 \uC560\uB4DC\uC628 \uAD00\uB828 \uBA85\uB839").addCommand(clusterAddonListCommand).addCommand(clusterAddonGetCommand).addCommand(clusterAddonInstallCommand).addCommand(clusterAddonUpdateCommand).addCommand(clusterAddonRemoveCommand);
|
|
7715
|
+
var clusterCommand = new import_commander45.Command("cluster").description("NKS \uD074\uB7EC\uC2A4\uD130 \uAD00\uB828 \uBA85\uB839").addCommand(listCommand6).addCommand(getCommand4).addCommand(createCommand4).addCommand(deleteCommand3).addCommand(resizeCommand2).addCommand(eventsCommand).addCommand(eventCommand).addCommand(kubeconfigCommand).addCommand(ipAclCommand).addCommand(setIpAclCommand).addCommand(renewCertificateCommand).addCommand(updateSgwCommand).addCommand(setControlPlaneLogCommand).addCommand(clusterAddonCommand);
|
|
7616
7716
|
|
|
7617
7717
|
// src/commands/nks/nodegroup.ts
|
|
7618
|
-
var
|
|
7718
|
+
var import_commander46 = require("commander");
|
|
7619
7719
|
var import_chalk15 = __toESM(require("chalk"));
|
|
7620
7720
|
function nodeGroupRow(nodegroup) {
|
|
7621
7721
|
return [
|
|
@@ -7669,7 +7769,7 @@ async function confirmDangerousAction2(message, yes) {
|
|
|
7669
7769
|
if (!ok) process.stderr.write(import_chalk15.default.yellow("\uC791\uC5C5\uC774 \uCDE8\uC18C\uB418\uC5C8\uC2B5\uB2C8\uB2E4.\n"));
|
|
7670
7770
|
return ok;
|
|
7671
7771
|
}
|
|
7672
|
-
var listCommand7 = new
|
|
7772
|
+
var listCommand7 = new import_commander46.Command("list").description("NKS \uB178\uB4DC \uADF8\uB8F9 \uBAA9\uB85D\uC744 \uC870\uD68C\uD55C\uB2E4").argument("<cluster>", "\uD074\uB7EC\uC2A4\uD130 UUID \uB610\uB294 \uC774\uB984").option("--region <region>", "region override (\uAE30\uBCF8: iaas \uC790\uACA9\uC99D\uBA85\uC758 region)").option("--profile <name>", "\uC0AC\uC6A9\uD560 profile \uC774\uB984").action(async (cluster, _opts, cmd) => {
|
|
7673
7773
|
const opts = cmd.optsWithGlobals();
|
|
7674
7774
|
const { client } = await resolveNksClient(opts);
|
|
7675
7775
|
startSpinner("NKS \uB178\uB4DC \uADF8\uB8F9 \uBAA9\uB85D \uC870\uD68C \uC911...");
|
|
@@ -7688,7 +7788,7 @@ var listCommand7 = new import_commander45.Command("list").description("NKS \uB17
|
|
|
7688
7788
|
ids: nodegroups.map((nodegroup) => nodegroup.uuid)
|
|
7689
7789
|
});
|
|
7690
7790
|
});
|
|
7691
|
-
var getCommand5 = new
|
|
7791
|
+
var getCommand5 = new import_commander46.Command("get").description("NKS \uB178\uB4DC \uADF8\uB8F9\uC744 \uC870\uD68C\uD55C\uB2E4").argument("<cluster>", "\uD074\uB7EC\uC2A4\uD130 UUID \uB610\uB294 \uC774\uB984").argument("<nodegroup>", "\uB178\uB4DC \uADF8\uB8F9 UUID \uB610\uB294 \uC774\uB984").option("--region <region>", "region override (\uAE30\uBCF8: iaas \uC790\uACA9\uC99D\uBA85\uC758 region)").option("--profile <name>", "\uC0AC\uC6A9\uD560 profile \uC774\uB984").action(async (cluster, nodegroup, _opts, cmd) => {
|
|
7692
7792
|
const opts = cmd.optsWithGlobals();
|
|
7693
7793
|
const { client } = await resolveNksClient(opts);
|
|
7694
7794
|
startSpinner("NKS \uB178\uB4DC \uADF8\uB8F9 \uC870\uD68C \uC911...");
|
|
@@ -7707,7 +7807,7 @@ var getCommand5 = new import_commander45.Command("get").description("NKS \uB178\
|
|
|
7707
7807
|
ids: [result.uuid]
|
|
7708
7808
|
});
|
|
7709
7809
|
});
|
|
7710
|
-
var createCommand5 = new
|
|
7810
|
+
var createCommand5 = new import_commander46.Command("create").description("NKS \uB178\uB4DC \uADF8\uB8F9\uC744 \uC0DD\uC131\uD55C\uB2E4").argument("<cluster>", "\uD074\uB7EC\uC2A4\uD130 UUID \uB610\uB294 \uC774\uB984").requiredOption("--file <json>", "\uACF5\uC2DD API payload JSON \uD30C\uC77C").option("--region <region>", "region override (\uAE30\uBCF8: iaas \uC790\uACA9\uC99D\uBA85\uC758 region)").option("--profile <name>", "\uC0AC\uC6A9\uD560 profile \uC774\uB984").action(async (cluster, _opts, cmd) => {
|
|
7711
7811
|
const opts = cmd.optsWithGlobals();
|
|
7712
7812
|
const payload = await readJsonFile(opts.file);
|
|
7713
7813
|
const { client } = await resolveNksClient(opts);
|
|
@@ -7722,7 +7822,7 @@ var createCommand5 = new import_commander45.Command("create").description("NKS \
|
|
|
7722
7822
|
stopSpinner(true);
|
|
7723
7823
|
uuidOutput2(opts, result, "\uB178\uB4DC \uADF8\uB8F9 \uC0DD\uC131");
|
|
7724
7824
|
});
|
|
7725
|
-
var deleteCommand4 = new
|
|
7825
|
+
var deleteCommand4 = new import_commander46.Command("delete").description("NKS \uB178\uB4DC \uADF8\uB8F9\uC744 \uC0AD\uC81C\uD55C\uB2E4").argument("<cluster>", "\uD074\uB7EC\uC2A4\uD130 UUID \uB610\uB294 \uC774\uB984").argument("<nodegroup>", "\uB178\uB4DC \uADF8\uB8F9 UUID \uB610\uB294 \uC774\uB984").option("--yes", "\uD655\uC778 \uD504\uB86C\uD504\uD2B8 \uC0DD\uB7B5 (CI/\uBE44\uB300\uD654\uD615 \uD544\uC218)").option("--region <region>", "region override (\uAE30\uBCF8: iaas \uC790\uACA9\uC99D\uBA85\uC758 region)").option("--profile <name>", "\uC0AC\uC6A9\uD560 profile \uC774\uB984").action(async (cluster, nodegroup, _opts, cmd) => {
|
|
7726
7826
|
const opts = cmd.optsWithGlobals();
|
|
7727
7827
|
const ok = await confirmDangerousAction2(`NKS \uB178\uB4DC \uADF8\uB8F9 "${nodegroup}" \uB97C \uC0AD\uC81C\uD558\uC2DC\uACA0\uC2B5\uB2C8\uAE4C?`, opts.yes);
|
|
7728
7828
|
if (!ok) return;
|
|
@@ -7739,7 +7839,7 @@ var deleteCommand4 = new import_commander45.Command("delete").description("NKS \
|
|
|
7739
7839
|
`));
|
|
7740
7840
|
});
|
|
7741
7841
|
function nodeActionCommand(name) {
|
|
7742
|
-
return new
|
|
7842
|
+
return new import_commander46.Command(name).description(`NKS \uB178\uB4DC \uADF8\uB8F9 \uB178\uB4DC\uB97C ${name === "stop-node" ? "\uC911\uC9C0" : "\uC2DC\uC791"}\uD55C\uB2E4`).argument("<cluster>", "\uD074\uB7EC\uC2A4\uD130 UUID \uB610\uB294 \uC774\uB984").argument("<nodegroup>", "\uB178\uB4DC \uADF8\uB8F9 UUID \uB610\uB294 \uC774\uB984").requiredOption("--nodes <csv>", "\uB300\uC0C1 \uB178\uB4DC CSV").option("--region <region>", "region override (\uAE30\uBCF8: iaas \uC790\uACA9\uC99D\uBA85\uC758 region)").option("--profile <name>", "\uC0AC\uC6A9\uD560 profile \uC774\uB984").action(async (cluster, nodegroup, _opts, cmd) => {
|
|
7743
7843
|
const opts = cmd.optsWithGlobals();
|
|
7744
7844
|
const nodes = parseCsv(opts.nodes, "--nodes");
|
|
7745
7845
|
const { client } = await resolveNksClient(opts);
|
|
@@ -7755,7 +7855,7 @@ function nodeActionCommand(name) {
|
|
|
7755
7855
|
uuidOutput2(opts, result, `\uB178\uB4DC ${name === "stop-node" ? "\uC911\uC9C0" : "\uC2DC\uC791"}`);
|
|
7756
7856
|
});
|
|
7757
7857
|
}
|
|
7758
|
-
var autoscaleCommand = new
|
|
7858
|
+
var autoscaleCommand = new import_commander46.Command("autoscale").description("NKS \uB178\uB4DC \uADF8\uB8F9 autoscale \uC124\uC815\uC744 \uC870\uD68C\uD55C\uB2E4").argument("<cluster>", "\uD074\uB7EC\uC2A4\uD130 UUID \uB610\uB294 \uC774\uB984").argument("<nodegroup>", "\uB178\uB4DC \uADF8\uB8F9 UUID \uB610\uB294 \uC774\uB984").option("--region <region>", "region override (\uAE30\uBCF8: iaas \uC790\uACA9\uC99D\uBA85\uC758 region)").option("--profile <name>", "\uC0AC\uC6A9\uD560 profile \uC774\uB984").action(async (cluster, nodegroup, _opts, cmd) => {
|
|
7759
7859
|
const opts = cmd.optsWithGlobals();
|
|
7760
7860
|
const { client } = await resolveNksClient(opts);
|
|
7761
7861
|
startSpinner("NKS \uB178\uB4DC \uADF8\uB8F9 autoscale \uC870\uD68C \uC911...");
|
|
@@ -7774,7 +7874,7 @@ var autoscaleCommand = new import_commander45.Command("autoscale").description("
|
|
|
7774
7874
|
ids: []
|
|
7775
7875
|
});
|
|
7776
7876
|
});
|
|
7777
|
-
var setAutoscaleCommand = new
|
|
7877
|
+
var setAutoscaleCommand = new import_commander46.Command("set-autoscale").description("NKS \uB178\uB4DC \uADF8\uB8F9 autoscale \uC124\uC815\uC744 \uBCC0\uACBD\uD55C\uB2E4").argument("<cluster>", "\uD074\uB7EC\uC2A4\uD130 UUID \uB610\uB294 \uC774\uB984").argument("<nodegroup>", "\uB178\uB4DC \uADF8\uB8F9 UUID \uB610\uB294 \uC774\uB984").requiredOption("--file <json>", "\uACF5\uC2DD API payload JSON \uD30C\uC77C").option("--region <region>", "region override (\uAE30\uBCF8: iaas \uC790\uACA9\uC99D\uBA85\uC758 region)").option("--profile <name>", "\uC0AC\uC6A9\uD560 profile \uC774\uB984").action(async (cluster, nodegroup, _opts, cmd) => {
|
|
7778
7878
|
const opts = cmd.optsWithGlobals();
|
|
7779
7879
|
const payload = await readJsonFile(opts.file);
|
|
7780
7880
|
const { client } = await resolveNksClient(opts);
|
|
@@ -7789,7 +7889,7 @@ var setAutoscaleCommand = new import_commander45.Command("set-autoscale").descri
|
|
|
7789
7889
|
stopSpinner(true);
|
|
7790
7890
|
uuidOutput2(opts, result, "autoscale \uBCC0\uACBD");
|
|
7791
7891
|
});
|
|
7792
|
-
var setMetricAutoscaleCommand = new
|
|
7892
|
+
var setMetricAutoscaleCommand = new import_commander46.Command("set-metric-autoscale").description("NKS \uB178\uB4DC \uADF8\uB8F9 metric autoscale \uC124\uC815\uC744 \uBCC0\uACBD\uD55C\uB2E4").argument("<cluster>", "\uD074\uB7EC\uC2A4\uD130 UUID \uB610\uB294 \uC774\uB984").argument("<nodegroup>", "\uB178\uB4DC \uADF8\uB8F9 UUID \uB610\uB294 \uC774\uB984").requiredOption("--file <json>", "\uACF5\uC2DD API payload JSON \uD30C\uC77C").option("--region <region>", "region override (\uAE30\uBCF8: iaas \uC790\uACA9\uC99D\uBA85\uC758 region)").option("--profile <name>", "\uC0AC\uC6A9\uD560 profile \uC774\uB984").action(async (cluster, nodegroup, _opts, cmd) => {
|
|
7793
7893
|
const opts = cmd.optsWithGlobals();
|
|
7794
7894
|
const payload = await readJsonFile(opts.file);
|
|
7795
7895
|
const { client } = await resolveNksClient(opts);
|
|
@@ -7804,7 +7904,7 @@ var setMetricAutoscaleCommand = new import_commander45.Command("set-metric-autos
|
|
|
7804
7904
|
stopSpinner(true);
|
|
7805
7905
|
uuidOutput2(opts, result, "metric autoscale \uBCC0\uACBD");
|
|
7806
7906
|
});
|
|
7807
|
-
var upgradeCommand = new
|
|
7907
|
+
var upgradeCommand = new import_commander46.Command("upgrade").description("NKS \uB178\uB4DC \uADF8\uB8F9 Kubernetes version \uC744 \uC5C5\uADF8\uB808\uC774\uB4DC\uD55C\uB2E4 (default-master \uB85C control plane \uC5C5\uADF8\uB808\uC774\uB4DC)").argument("<cluster>", "\uD074\uB7EC\uC2A4\uD130 UUID \uB610\uB294 \uC774\uB984").argument("<nodegroup>", "\uB178\uB4DC \uADF8\uB8F9 UUID \uB610\uB294 \uC774\uB984. control plane \uC740 default-master \uB85C \uC9C0\uC815\uD55C\uB2E4").requiredOption("--kube-version <v>", "\uB300\uC0C1 Kubernetes version").option("--num-buffer-nodes <n>", "\uCD95\uCD9C\uB41C \uD30C\uB4DC\uB97C \uBC1B\uC744 \uC5EC\uC720 \uB178\uB4DC \uC218 (\uAE30\uBCF8 1, \uC791\uC5C5 \uD6C4 \uC790\uB3D9 \uC0AD\uC81C, \uC778\uC2A4\uD134\uC2A4 \uC694\uAE08 \uBC1C\uC0DD)").option("--num-max-unavailable-nodes <n>", "\uD55C \uBC88\uC5D0 \uC11C\uBE44\uC2A4 \uBD88\uAC00 \uC0C1\uD0DC\uB85C \uB458 \uB178\uB4DC \uC218 (\uAE30\uBCF8 1, \uD06C\uBA74 \uBE60\uB974\uACE0 \uAC00\uC6A9\uC131 \uB0AE\uC74C)").option("--region <region>", "region override (\uAE30\uBCF8: iaas \uC790\uACA9\uC99D\uBA85\uC758 region)").option("--profile <name>", "\uC0AC\uC6A9\uD560 profile \uC774\uB984").action(async (cluster, nodegroup, _opts, cmd) => {
|
|
7808
7908
|
const opts = cmd.optsWithGlobals();
|
|
7809
7909
|
const { client } = await resolveNksClient(opts);
|
|
7810
7910
|
startSpinner("NKS \uB178\uB4DC \uADF8\uB8F9 upgrade \uC694\uCCAD \uC911...");
|
|
@@ -7822,7 +7922,7 @@ var upgradeCommand = new import_commander45.Command("upgrade").description("NKS
|
|
|
7822
7922
|
stopSpinner(true);
|
|
7823
7923
|
uuidOutput2(opts, result, "\uB178\uB4DC \uADF8\uB8F9 upgrade");
|
|
7824
7924
|
});
|
|
7825
|
-
var setUserscriptCommand = new
|
|
7925
|
+
var setUserscriptCommand = new import_commander46.Command("set-userscript").description("NKS \uB178\uB4DC \uADF8\uB8F9 user script \uB97C \uBCC0\uACBD\uD55C\uB2E4").argument("<cluster>", "\uD074\uB7EC\uC2A4\uD130 UUID \uB610\uB294 \uC774\uB984").argument("<nodegroup>", "\uB178\uB4DC \uADF8\uB8F9 UUID \uB610\uB294 \uC774\uB984").requiredOption("--file <script>", "script \uD30C\uC77C").option("--region <region>", "region override (\uAE30\uBCF8: iaas \uC790\uACA9\uC99D\uBA85\uC758 region)").option("--profile <name>", "\uC0AC\uC6A9\uD560 profile \uC774\uB984").action(async (cluster, nodegroup, _opts, cmd) => {
|
|
7826
7926
|
const opts = cmd.optsWithGlobals();
|
|
7827
7927
|
const contents = await readTextFile(opts.file);
|
|
7828
7928
|
const { client } = await resolveNksClient(opts);
|
|
@@ -7837,7 +7937,7 @@ var setUserscriptCommand = new import_commander45.Command("set-userscript").desc
|
|
|
7837
7937
|
stopSpinner(true);
|
|
7838
7938
|
uuidOutput2(opts, result, "user script \uBCC0\uACBD");
|
|
7839
7939
|
});
|
|
7840
|
-
var updateFlavorCommand = new
|
|
7940
|
+
var updateFlavorCommand = new import_commander46.Command("update-flavor").description("NKS \uB178\uB4DC \uADF8\uB8F9 flavor \uB97C \uBCC0\uACBD\uD55C\uB2E4").argument("<cluster>", "\uD074\uB7EC\uC2A4\uD130 UUID \uB610\uB294 \uC774\uB984").argument("<nodegroup>", "\uB178\uB4DC \uADF8\uB8F9 UUID \uB610\uB294 \uC774\uB984").requiredOption("--flavor <uuid>", "\uBCC0\uACBD\uD560 flavor UUID").option("--num-buffer-nodes <n>", "\uCD95\uCD9C\uB41C \uD30C\uB4DC\uB97C \uBC1B\uC744 \uC5EC\uC720 \uB178\uB4DC \uC218 (\uAE30\uBCF8 1, \uC791\uC5C5 \uD6C4 \uC790\uB3D9 \uC0AD\uC81C, \uC778\uC2A4\uD134\uC2A4 \uC694\uAE08 \uBC1C\uC0DD)").option("--num-max-unavailable-nodes <n>", "\uD55C \uBC88\uC5D0 \uC11C\uBE44\uC2A4 \uBD88\uAC00 \uC0C1\uD0DC\uB85C \uB458 \uB178\uB4DC \uC218 (\uAE30\uBCF8 1, \uD06C\uBA74 \uBE60\uB974\uACE0 \uAC00\uC6A9\uC131 \uB0AE\uC74C)").option("--region <region>", "region override (\uAE30\uBCF8: iaas \uC790\uACA9\uC99D\uBA85\uC758 region)").option("--profile <name>", "\uC0AC\uC6A9\uD560 profile \uC774\uB984").action(async (cluster, nodegroup, _opts, cmd) => {
|
|
7841
7941
|
const opts = cmd.optsWithGlobals();
|
|
7842
7942
|
const { client } = await resolveNksClient(opts);
|
|
7843
7943
|
startSpinner("NKS \uB178\uB4DC \uADF8\uB8F9 flavor \uBCC0\uACBD \uC694\uCCAD \uC911...");
|
|
@@ -7856,7 +7956,7 @@ var updateFlavorCommand = new import_commander45.Command("update-flavor").descri
|
|
|
7856
7956
|
uuidOutput2(opts, result, "flavor \uBCC0\uACBD");
|
|
7857
7957
|
});
|
|
7858
7958
|
function patchPayloadCommand(name) {
|
|
7859
|
-
return new
|
|
7959
|
+
return new import_commander46.Command(name).description(`NKS \uB178\uB4DC \uADF8\uB8F9 ${name === "set-fip-auto-bind" ? "Floating IP \uC790\uB3D9 \uC5F0\uACB0" : "Kubernetes labels"} \uC124\uC815\uC744 \uBCC0\uACBD\uD55C\uB2E4`).argument("<cluster>", "\uD074\uB7EC\uC2A4\uD130 UUID \uB610\uB294 \uC774\uB984").argument("<nodegroup>", "\uB178\uB4DC \uADF8\uB8F9 UUID \uB610\uB294 \uC774\uB984").requiredOption("--file <json>", "\uACF5\uC2DD API payload JSON \uD30C\uC77C").option("--region <region>", "region override (\uAE30\uBCF8: iaas \uC790\uACA9\uC99D\uBA85\uC758 region)").option("--profile <name>", "\uC0AC\uC6A9\uD560 profile \uC774\uB984").action(async (cluster, nodegroup, _opts, cmd) => {
|
|
7860
7960
|
const opts = cmd.optsWithGlobals();
|
|
7861
7961
|
const payload = await readJsonFile(opts.file);
|
|
7862
7962
|
const { client } = await resolveNksClient(opts);
|
|
@@ -7872,10 +7972,10 @@ function patchPayloadCommand(name) {
|
|
|
7872
7972
|
uuidOutput2(opts, result, name);
|
|
7873
7973
|
});
|
|
7874
7974
|
}
|
|
7875
|
-
var nodegroupCommand = new
|
|
7975
|
+
var nodegroupCommand = new import_commander46.Command("nodegroup").description("NKS \uB178\uB4DC \uADF8\uB8F9 \uAD00\uB828 \uBA85\uB839").addCommand(listCommand7).addCommand(getCommand5).addCommand(createCommand5).addCommand(deleteCommand4).addCommand(nodeActionCommand("stop-node")).addCommand(nodeActionCommand("start-node")).addCommand(autoscaleCommand).addCommand(setAutoscaleCommand).addCommand(setMetricAutoscaleCommand).addCommand(upgradeCommand).addCommand(setUserscriptCommand).addCommand(updateFlavorCommand).addCommand(patchPayloadCommand("set-fip-auto-bind")).addCommand(patchPayloadCommand("set-labels"));
|
|
7876
7976
|
|
|
7877
7977
|
// src/commands/nks/addon.ts
|
|
7878
|
-
var
|
|
7978
|
+
var import_commander47 = require("commander");
|
|
7879
7979
|
function addonTypeRow(addonType) {
|
|
7880
7980
|
return [
|
|
7881
7981
|
addonType.uuid ?? addonType.id ?? addonType.name,
|
|
@@ -7891,7 +7991,7 @@ function addonRow2(addon) {
|
|
|
7891
7991
|
addon.status ?? ""
|
|
7892
7992
|
];
|
|
7893
7993
|
}
|
|
7894
|
-
var addonTypeListCommand = new
|
|
7994
|
+
var addonTypeListCommand = new import_commander47.Command("list").description("NKS \uC560\uB4DC\uC628 \uD0C0\uC785 \uBAA9\uB85D\uC744 \uC870\uD68C\uD55C\uB2E4").option("--region <region>", "region override (\uAE30\uBCF8: iaas \uC790\uACA9\uC99D\uBA85\uC758 region)").option("--profile <name>", "\uC0AC\uC6A9\uD560 profile \uC774\uB984").action(async (_opts, cmd) => {
|
|
7895
7995
|
const opts = cmd.optsWithGlobals();
|
|
7896
7996
|
const { client } = await resolveNksClient(opts);
|
|
7897
7997
|
startSpinner("NKS \uC560\uB4DC\uC628 \uD0C0\uC785 \uBAA9\uB85D \uC870\uD68C \uC911...");
|
|
@@ -7910,7 +8010,7 @@ var addonTypeListCommand = new import_commander46.Command("list").description("N
|
|
|
7910
8010
|
ids: addonTypes.map((addonType) => addonType.uuid ?? addonType.id ?? addonType.name)
|
|
7911
8011
|
});
|
|
7912
8012
|
});
|
|
7913
|
-
var addonTypeGetCommand = new
|
|
8013
|
+
var addonTypeGetCommand = new import_commander47.Command("get").description("NKS \uC560\uB4DC\uC628 \uD0C0\uC785\uC744 \uC870\uD68C\uD55C\uB2E4").argument("<addon-type>", "\uC560\uB4DC\uC628 \uD0C0\uC785 UUID \uB610\uB294 \uC774\uB984").option("--region <region>", "region override (\uAE30\uBCF8: iaas \uC790\uACA9\uC99D\uBA85\uC758 region)").option("--profile <name>", "\uC0AC\uC6A9\uD560 profile \uC774\uB984").action(async (addonType, _opts, cmd) => {
|
|
7914
8014
|
const opts = cmd.optsWithGlobals();
|
|
7915
8015
|
const { client } = await resolveNksClient(opts);
|
|
7916
8016
|
startSpinner("NKS \uC560\uB4DC\uC628 \uD0C0\uC785 \uC870\uD68C \uC911...");
|
|
@@ -7929,8 +8029,8 @@ var addonTypeGetCommand = new import_commander46.Command("get").description("NKS
|
|
|
7929
8029
|
ids: [result.uuid ?? result.id ?? result.name]
|
|
7930
8030
|
});
|
|
7931
8031
|
});
|
|
7932
|
-
var addonTypeCommand = new
|
|
7933
|
-
var addonListCommand = new
|
|
8032
|
+
var addonTypeCommand = new import_commander47.Command("addon-type").description("NKS \uC560\uB4DC\uC628 \uD0C0\uC785 \uAD00\uB828 \uBA85\uB839").addCommand(addonTypeListCommand).addCommand(addonTypeGetCommand);
|
|
8033
|
+
var addonListCommand = new import_commander47.Command("list").description("NKS \uC560\uB4DC\uC628 \uBAA9\uB85D\uC744 \uC870\uD68C\uD55C\uB2E4").option("--k8s-version <version>", "Kubernetes version filter").option("--image <image>", "image filter").option("--platform-version <version>", "platform version filter").option("--region <region>", "region override (\uAE30\uBCF8: iaas \uC790\uACA9\uC99D\uBA85\uC758 region)").option("--profile <name>", "\uC0AC\uC6A9\uD560 profile \uC774\uB984").action(async (_opts, cmd) => {
|
|
7934
8034
|
const opts = cmd.optsWithGlobals();
|
|
7935
8035
|
const { client } = await resolveNksClient(opts);
|
|
7936
8036
|
startSpinner("NKS \uC560\uB4DC\uC628 \uBAA9\uB85D \uC870\uD68C \uC911...");
|
|
@@ -7953,7 +8053,7 @@ var addonListCommand = new import_commander46.Command("list").description("NKS \
|
|
|
7953
8053
|
ids: addons.map((addon) => addon.uuid ?? addon.id ?? addon.name)
|
|
7954
8054
|
});
|
|
7955
8055
|
});
|
|
7956
|
-
var addonGetCommand = new
|
|
8056
|
+
var addonGetCommand = new import_commander47.Command("get").description("NKS \uC560\uB4DC\uC628\uC744 \uC870\uD68C\uD55C\uB2E4").argument("<addon>", "\uC560\uB4DC\uC628 UUID \uB610\uB294 \uC774\uB984").option("--region <region>", "region override (\uAE30\uBCF8: iaas \uC790\uACA9\uC99D\uBA85\uC758 region)").option("--profile <name>", "\uC0AC\uC6A9\uD560 profile \uC774\uB984").action(async (addon, _opts, cmd) => {
|
|
7957
8057
|
const opts = cmd.optsWithGlobals();
|
|
7958
8058
|
const { client } = await resolveNksClient(opts);
|
|
7959
8059
|
startSpinner("NKS \uC560\uB4DC\uC628 \uC870\uD68C \uC911...");
|
|
@@ -7972,10 +8072,10 @@ var addonGetCommand = new import_commander46.Command("get").description("NKS \uC
|
|
|
7972
8072
|
ids: [result.uuid ?? result.id ?? result.name]
|
|
7973
8073
|
});
|
|
7974
8074
|
});
|
|
7975
|
-
var addonCommand = new
|
|
8075
|
+
var addonCommand = new import_commander47.Command("addon").description("NKS \uC560\uB4DC\uC628 \uAD00\uB828 \uBA85\uB839").addCommand(addonListCommand).addCommand(addonGetCommand);
|
|
7976
8076
|
|
|
7977
8077
|
// src/commands/ncs/template.ts
|
|
7978
|
-
var
|
|
8078
|
+
var import_commander48 = require("commander");
|
|
7979
8079
|
var import_chalk16 = __toESM(require("chalk"));
|
|
7980
8080
|
|
|
7981
8081
|
// src/commands/ncs/helpers.ts
|
|
@@ -8090,6 +8190,7 @@ async function resolveNcsAppKey(profileName) {
|
|
|
8090
8190
|
}
|
|
8091
8191
|
async function resolveNcsClient(opts) {
|
|
8092
8192
|
const profileName = await resolveProfileName(opts.profile);
|
|
8193
|
+
await requireRealEnvironment(profileName, "NCS");
|
|
8093
8194
|
const uak = await getUserAccessKey(profileName);
|
|
8094
8195
|
const accessToken = await getAccessToken(profileName, uak.id, uak.secret);
|
|
8095
8196
|
const appKey = await resolveNcsAppKey(profileName);
|
|
@@ -8148,7 +8249,7 @@ async function confirmDestructive(message, yes) {
|
|
|
8148
8249
|
}
|
|
8149
8250
|
|
|
8150
8251
|
// src/commands/ncs/template.ts
|
|
8151
|
-
var listCommand8 = new
|
|
8252
|
+
var listCommand8 = new import_commander48.Command("list").description("NCS \uC124\uACC4\uB3C4(template) \uBAA9\uB85D\uC744 \uC870\uD68C\uD55C\uB2E4").option("--region <region>", "NCS region (\uAE30\uBCF8: kr1, kr1/kr3 \uB9CC \uC9C0\uC6D0)", "kr1").option("--profile <name>", "\uC0AC\uC6A9\uD560 profile \uC774\uB984").option("--page <page>", "\uC870\uD68C\uD560 page \uBC88\uD638").option("--size <size>", "page \uB2F9 \uD56D\uBAA9 \uC218 (\uAE30\uBCF8: API \uAE30\uBCF8\uAC12 10)").action(async (_opts, cmd) => {
|
|
8152
8253
|
const opts = cmd.optsWithGlobals();
|
|
8153
8254
|
const { client } = await resolveNcsClient(opts);
|
|
8154
8255
|
startSpinner("NCS \uC124\uACC4\uB3C4 \uBAA9\uB85D \uC870\uD68C \uC911...");
|
|
@@ -8179,7 +8280,7 @@ var listCommand8 = new import_commander47.Command("list").description("NCS \uC12
|
|
|
8179
8280
|
ids: templates.map((t) => t.id)
|
|
8180
8281
|
});
|
|
8181
8282
|
});
|
|
8182
|
-
var getCommand6 = new
|
|
8283
|
+
var getCommand6 = new import_commander48.Command("get").description("NCS \uC124\uACC4\uB3C4(template) \uB2E8\uAC74\uC744 \uC870\uD68C\uD55C\uB2E4").argument("<id>", "template ID").option("--region <region>", "NCS region (\uAE30\uBCF8: kr1, kr1/kr3 \uB9CC \uC9C0\uC6D0)", "kr1").option("--profile <name>", "\uC0AC\uC6A9\uD560 profile \uC774\uB984").action(async (id, _opts, cmd) => {
|
|
8183
8284
|
const opts = cmd.optsWithGlobals();
|
|
8184
8285
|
requireNonEmpty(id, "id");
|
|
8185
8286
|
const { client } = await resolveNcsClient(opts);
|
|
@@ -8207,7 +8308,7 @@ var getCommand6 = new import_commander47.Command("get").description("NCS \uC124\
|
|
|
8207
8308
|
ids: [template.id]
|
|
8208
8309
|
});
|
|
8209
8310
|
});
|
|
8210
|
-
var createCommand6 = new
|
|
8311
|
+
var createCommand6 = new import_commander48.Command("create").description("NCS \uC124\uACC4\uB3C4(template) \uB97C \uC0DD\uC131\uD55C\uB2E4 (--file \uB85C JSON spec \uC804\uB2EC)").requiredOption("--file <path>", "template \uC0DD\uC131 spec \uC774 \uB2F4\uAE34 JSON \uD30C\uC77C \uACBD\uB85C").option("--region <region>", "NCS region (\uAE30\uBCF8: kr1, kr1/kr3 \uB9CC \uC9C0\uC6D0)", "kr1").option("--profile <name>", "\uC0AC\uC6A9\uD560 profile \uC774\uB984").action(async (_opts, cmd) => {
|
|
8211
8312
|
const opts = cmd.optsWithGlobals();
|
|
8212
8313
|
const payload = readJsonPayload(opts.file);
|
|
8213
8314
|
const { client } = await resolveNcsClient(opts);
|
|
@@ -8235,7 +8336,7 @@ var createCommand6 = new import_commander47.Command("create").description("NCS \
|
|
|
8235
8336
|
ids: [template.id]
|
|
8236
8337
|
});
|
|
8237
8338
|
});
|
|
8238
|
-
var deleteCommand5 = new
|
|
8339
|
+
var deleteCommand5 = new import_commander48.Command("delete").description("NCS \uC124\uACC4\uB3C4(template) \uB97C \uC0AD\uC81C\uD55C\uB2E4").argument("<id>", "template ID").option("--yes", "\uD655\uC778 \uD504\uB86C\uD504\uD2B8 \uC0DD\uB7B5 (CI/\uBE44\uB300\uD654\uD615 \uD544\uC218)").option("--region <region>", "NCS region (\uAE30\uBCF8: kr1, kr1/kr3 \uB9CC \uC9C0\uC6D0)", "kr1").option("--profile <name>", "\uC0AC\uC6A9\uD560 profile \uC774\uB984").action(async (id, _opts, cmd) => {
|
|
8239
8340
|
const opts = cmd.optsWithGlobals();
|
|
8240
8341
|
requireNonEmpty(id, "id");
|
|
8241
8342
|
const ok = await confirmDestructive(`NCS \uC124\uACC4\uB3C4 "${id}" \uB97C \uC0AD\uC81C\uD558\uC2DC\uACA0\uC2B5\uB2C8\uAE4C?`, opts.yes);
|
|
@@ -8255,7 +8356,7 @@ var deleteCommand5 = new import_commander47.Command("delete").description("NCS \
|
|
|
8255
8356
|
process.stderr.write(import_chalk16.default.green(`\u2713 NCS \uC124\uACC4\uB3C4 "${id}" \uAC00 \uC0AD\uC81C\uB418\uC5C8\uC2B5\uB2C8\uB2E4.
|
|
8256
8357
|
`));
|
|
8257
8358
|
});
|
|
8258
|
-
var versionListCommand = new
|
|
8359
|
+
var versionListCommand = new import_commander48.Command("list").description("NCS \uC124\uACC4\uB3C4(template) \uC758 \uBC84\uC804 \uBAA9\uB85D\uC744 \uC870\uD68C\uD55C\uB2E4").argument("<id>", "template ID").option("--region <region>", "NCS region (\uAE30\uBCF8: kr1, kr1/kr3 \uB9CC \uC9C0\uC6D0)", "kr1").option("--profile <name>", "\uC0AC\uC6A9\uD560 profile \uC774\uB984").option("--q <query>", "\uAC80\uC0C9\uC5B4").option("--sort <sort>", "\uC815\uB82C \uC870\uAC74").option("--page <page>", "\uC870\uD68C\uD560 page \uBC88\uD638").option("--size <size>", "page \uB2F9 \uD56D\uBAA9 \uC218 (\uAE30\uBCF8: API \uAE30\uBCF8\uAC12 10)").action(async (id, _opts, cmd) => {
|
|
8259
8360
|
const opts = cmd.optsWithGlobals();
|
|
8260
8361
|
requireNonEmpty(id, "id");
|
|
8261
8362
|
const { client } = await resolveNcsClient(opts);
|
|
@@ -8288,7 +8389,7 @@ var versionListCommand = new import_commander47.Command("list").description("NCS
|
|
|
8288
8389
|
ids: versions.map((v) => v.id)
|
|
8289
8390
|
});
|
|
8290
8391
|
});
|
|
8291
|
-
var versionGetCommand = new
|
|
8392
|
+
var versionGetCommand = new import_commander48.Command("get").description("NCS \uC124\uACC4\uB3C4(template) \uBC84\uC804 \uB2E8\uAC74\uC744 \uC870\uD68C\uD55C\uB2E4").argument("<id>", "template ID").argument("<version>", "\uBC84\uC804 \uAC12").option("--region <region>", "NCS region (\uAE30\uBCF8: kr1, kr1/kr3 \uB9CC \uC9C0\uC6D0)", "kr1").option("--profile <name>", "\uC0AC\uC6A9\uD560 profile \uC774\uB984").action(async (id, version, _opts, cmd) => {
|
|
8292
8393
|
const opts = cmd.optsWithGlobals();
|
|
8293
8394
|
requireNonEmpty(id, "id");
|
|
8294
8395
|
requireNonEmpty(version, "version");
|
|
@@ -8309,7 +8410,7 @@ var versionGetCommand = new import_commander47.Command("get").description("NCS \
|
|
|
8309
8410
|
ids: [detail.id]
|
|
8310
8411
|
});
|
|
8311
8412
|
});
|
|
8312
|
-
var versionCreateCommand = new
|
|
8413
|
+
var versionCreateCommand = new import_commander48.Command("create").description("NCS \uC124\uACC4\uB3C4(template) \uC758 \uC0C8 \uBC84\uC804\uC744 \uC0DD\uC131\uD55C\uB2E4 (--file \uB85C JSON spec \uC804\uB2EC, sourceVersion \uD544\uC218)").argument("<id>", "template ID").requiredOption("--file <path>", "\uBC84\uC804 \uC0DD\uC131 spec \uC774 \uB2F4\uAE34 JSON \uD30C\uC77C \uACBD\uB85C (sourceVersion \uD544\uB4DC \uD544\uC218)").option("--region <region>", "NCS region (\uAE30\uBCF8: kr1, kr1/kr3 \uB9CC \uC9C0\uC6D0)", "kr1").option("--profile <name>", "\uC0AC\uC6A9\uD560 profile \uC774\uB984").action(async (id, _opts, cmd) => {
|
|
8313
8414
|
const opts = cmd.optsWithGlobals();
|
|
8314
8415
|
requireNonEmpty(id, "id");
|
|
8315
8416
|
const payload = readJsonPayload(opts.file);
|
|
@@ -8330,7 +8431,7 @@ var versionCreateCommand = new import_commander47.Command("create").description(
|
|
|
8330
8431
|
ids: [version.id]
|
|
8331
8432
|
});
|
|
8332
8433
|
});
|
|
8333
|
-
var versionDeleteCommand = new
|
|
8434
|
+
var versionDeleteCommand = new import_commander48.Command("delete").description("NCS \uC124\uACC4\uB3C4(template) \uBC84\uC804\uC744 \uC0AD\uC81C\uD55C\uB2E4").argument("<id>", "template ID").argument("<version>", "\uBC84\uC804 \uAC12").option("--yes", "\uD655\uC778 \uD504\uB86C\uD504\uD2B8 \uC0DD\uB7B5 (CI/\uBE44\uB300\uD654\uD615 \uD544\uC218)").option("--region <region>", "NCS region (\uAE30\uBCF8: kr1, kr1/kr3 \uB9CC \uC9C0\uC6D0)", "kr1").option("--profile <name>", "\uC0AC\uC6A9\uD560 profile \uC774\uB984").action(async (id, version, _opts, cmd) => {
|
|
8334
8435
|
const opts = cmd.optsWithGlobals();
|
|
8335
8436
|
requireNonEmpty(id, "id");
|
|
8336
8437
|
requireNonEmpty(version, "version");
|
|
@@ -8356,11 +8457,11 @@ var versionDeleteCommand = new import_commander47.Command("delete").description(
|
|
|
8356
8457
|
`)
|
|
8357
8458
|
);
|
|
8358
8459
|
});
|
|
8359
|
-
var versionCommand = new
|
|
8360
|
-
var templateCommand = new
|
|
8460
|
+
var versionCommand = new import_commander48.Command("version").description("NCS \uC124\uACC4\uB3C4(template) \uBC84\uC804 \uAD00\uB9AC").addCommand(versionListCommand).addCommand(versionGetCommand).addCommand(versionCreateCommand).addCommand(versionDeleteCommand);
|
|
8461
|
+
var templateCommand = new import_commander48.Command("template").description("NCS \uC124\uACC4\uB3C4(template) \uAD00\uB9AC").addCommand(listCommand8).addCommand(getCommand6).addCommand(createCommand6).addCommand(deleteCommand5).addCommand(versionCommand);
|
|
8361
8462
|
|
|
8362
8463
|
// src/commands/ncs/workload.ts
|
|
8363
|
-
var
|
|
8464
|
+
var import_commander49 = require("commander");
|
|
8364
8465
|
var import_chalk17 = __toESM(require("chalk"));
|
|
8365
8466
|
function workloadRows(w) {
|
|
8366
8467
|
return [
|
|
@@ -8375,7 +8476,7 @@ function workloadRows(w) {
|
|
|
8375
8476
|
];
|
|
8376
8477
|
}
|
|
8377
8478
|
var WORKLOAD_HEADERS = ["id", "name", "type", "status", "desired", "available"];
|
|
8378
|
-
var listCommand9 = new
|
|
8479
|
+
var listCommand9 = new import_commander49.Command("list").description("NCS workload(\uB7F0\uD0C0\uC784 \uC2E4\uD589) \uBAA9\uB85D\uC744 \uC870\uD68C\uD55C\uB2E4").option("--region <region>", "NCS region (\uAE30\uBCF8: kr1, kr1/kr3 \uB9CC \uC9C0\uC6D0)", "kr1").option("--profile <name>", "\uC0AC\uC6A9\uD560 profile \uC774\uB984").option("--q <query>", "\uC6CC\uD06C\uB85C\uB4DC \uC774\uB984\xB7\uD15C\uD50C\uB9BF ID\xB7\uD15C\uD50C\uB9BF \uBC84\uC804\uC73C\uB85C \uD544\uD130\uB9C1").option("--page <page>", "\uC870\uD68C\uD560 page \uBC88\uD638").option("--size <size>", "page \uB2F9 \uD56D\uBAA9 \uC218 (\uAE30\uBCF8: API \uAE30\uBCF8\uAC12 10)").action(async (_opts, cmd) => {
|
|
8379
8480
|
const opts = cmd.optsWithGlobals();
|
|
8380
8481
|
const { client } = await resolveNcsClient(opts);
|
|
8381
8482
|
startSpinner("NCS workload \uBAA9\uB85D \uC870\uD68C \uC911...");
|
|
@@ -8408,7 +8509,7 @@ var listCommand9 = new import_commander48.Command("list").description("NCS workl
|
|
|
8408
8509
|
ids: workloads.map((w) => w.id)
|
|
8409
8510
|
});
|
|
8410
8511
|
});
|
|
8411
|
-
var getCommand7 = new
|
|
8512
|
+
var getCommand7 = new import_commander49.Command("get").description("NCS workload \uB2E8\uAC74\uC744 \uC870\uD68C\uD55C\uB2E4").argument("<id>", "workload ID").option("--region <region>", "NCS region (\uAE30\uBCF8: kr1, kr1/kr3 \uB9CC \uC9C0\uC6D0)", "kr1").option("--profile <name>", "\uC0AC\uC6A9\uD560 profile \uC774\uB984").action(async (id, _opts, cmd) => {
|
|
8412
8513
|
const opts = cmd.optsWithGlobals();
|
|
8413
8514
|
requireNonEmpty(id, "id");
|
|
8414
8515
|
const { client } = await resolveNcsClient(opts);
|
|
@@ -8438,7 +8539,7 @@ var getCommand7 = new import_commander48.Command("get").description("NCS workloa
|
|
|
8438
8539
|
ids: [workload.id]
|
|
8439
8540
|
});
|
|
8440
8541
|
});
|
|
8441
|
-
var logsCommand = new
|
|
8542
|
+
var logsCommand = new import_commander49.Command("logs").description("NCS workload task \uC758 \uCEE8\uD14C\uC774\uB108 \uB85C\uADF8\uB97C \uC870\uD68C\uD55C\uB2E4").argument("<id>", "workload ID").option("--region <region>", "NCS region (\uAE30\uBCF8: kr1, kr1/kr3 \uB9CC \uC9C0\uC6D0)", "kr1").option("--profile <name>", "\uC0AC\uC6A9\uD560 profile \uC774\uB984").option("--task <taskId>", "task ID (\uD544\uC218)").option("--container <name>", "\uCEE8\uD14C\uC774\uB108 \uC774\uB984 (\uD544\uC218)").option(
|
|
8442
8543
|
"--from <time>",
|
|
8443
8544
|
"\uB85C\uADF8 \uC2DC\uC791: \uC2DC\uAC04\uB300 \uD3EC\uD568 RFC3339, now \uB610\uB294 0 \uC774\uC0C1\uC758 \uC815\uC218\uC640 m/h/d \uB2E8\uC704 (\uC608: 30m, 1h, 2d). UTC Z\uB85C \uC815\uADDC\uD654\uD558\uBA70 \uC0DD\uB7B5 \uC2DC API \uAE30\uBCF8 \uBC94\uC704"
|
|
8444
8545
|
).option(
|
|
@@ -8483,7 +8584,7 @@ var logsCommand = new import_commander48.Command("logs").description("NCS worklo
|
|
|
8483
8584
|
ids: []
|
|
8484
8585
|
});
|
|
8485
8586
|
});
|
|
8486
|
-
var eventsCommand2 = new
|
|
8587
|
+
var eventsCommand2 = new import_commander49.Command("events").description("NCS workload task \uC758 \uC774\uBCA4\uD2B8\uB97C \uC870\uD68C\uD55C\uB2E4").argument("<id>", "workload ID").option("--region <region>", "NCS region (\uAE30\uBCF8: kr1, kr1/kr3 \uB9CC \uC9C0\uC6D0)", "kr1").option("--profile <name>", "\uC0AC\uC6A9\uD560 profile \uC774\uB984").option("--task <taskId>", "task ID (\uD544\uC218)").option("--type <type>", "\uC774\uBCA4\uD2B8 \uD0C0\uC785 (Normal | Warning)").option("--q <query>", "\uC774\uBCA4\uD2B8 \uB0B4\uC6A9 \uD544\uD130\uB9C1").option(
|
|
8487
8588
|
"--from <time>",
|
|
8488
8589
|
"\uC774\uBCA4\uD2B8 \uC2DC\uC791: \uC2DC\uAC04\uB300 \uD3EC\uD568 RFC3339, now \uB610\uB294 0 \uC774\uC0C1\uC758 \uC815\uC218\uC640 m/h/d \uB2E8\uC704 (\uC608: 30m, 1h, 2d). UTC Z\uB85C \uC815\uADDC\uD654\uD558\uBA70 \uC0DD\uB7B5 \uC2DC API \uAE30\uBCF8 \uBC94\uC704"
|
|
8489
8590
|
).option(
|
|
@@ -8525,7 +8626,7 @@ var eventsCommand2 = new import_commander48.Command("events").description("NCS w
|
|
|
8525
8626
|
ids: []
|
|
8526
8627
|
});
|
|
8527
8628
|
});
|
|
8528
|
-
var historyGetCommand = new
|
|
8629
|
+
var historyGetCommand = new import_commander49.Command("get").description("NCS workload \uC2E4\uD589 \uD788\uC2A4\uD1A0\uB9AC \uB2E8\uAC74\uC744 \uC870\uD68C\uD55C\uB2E4").argument("<id>", "workload ID").argument("<historyId>", "\uD788\uC2A4\uD1A0\uB9AC ID").option("--region <region>", "NCS region (\uAE30\uBCF8: kr1, kr1/kr3 \uB9CC \uC9C0\uC6D0)", "kr1").option("--profile <name>", "\uC0AC\uC6A9\uD560 profile \uC774\uB984").action(async (id, historyId, _opts, cmd) => {
|
|
8529
8630
|
const opts = cmd.optsWithGlobals();
|
|
8530
8631
|
requireNonEmpty(id, "id");
|
|
8531
8632
|
requireNonEmpty(historyId, "historyId");
|
|
@@ -8554,7 +8655,7 @@ var historyGetCommand = new import_commander48.Command("get").description("NCS w
|
|
|
8554
8655
|
ids: [String(detail.id)]
|
|
8555
8656
|
});
|
|
8556
8657
|
});
|
|
8557
|
-
var historyCommand = new
|
|
8658
|
+
var historyCommand = new import_commander49.Command("history").description("NCS workload \uC2E4\uD589 \uD788\uC2A4\uD1A0\uB9AC \uBAA9\uB85D\uC744 \uC870\uD68C\uD55C\uB2E4").argument("<id>", "workload ID").option("--region <region>", "NCS region (\uAE30\uBCF8: kr1, kr1/kr3 \uB9CC \uC9C0\uC6D0)", "kr1").option("--profile <name>", "\uC0AC\uC6A9\uD560 profile \uC774\uB984").option("--page <page>", "\uC870\uD68C\uD560 page \uBC88\uD638").option("--size <size>", "page \uB2F9 \uD56D\uBAA9 \uC218 (\uAE30\uBCF8: API \uAE30\uBCF8\uAC12 10)").option("--sort <sort>", "\uC815\uB82C \uAE30\uC900 \uD544\uB4DC\uBA85 (\uC5ED\uC21C\uC740 \uD544\uB4DC\uBA85 \uC55E\uC5D0 - \uB97C \uBD99\uC784, \uC608: -id)").action(async (id, _opts, cmd) => {
|
|
8558
8659
|
const opts = cmd.optsWithGlobals();
|
|
8559
8660
|
requireNonEmpty(id, "id");
|
|
8560
8661
|
const { client } = await resolveNcsClient(opts);
|
|
@@ -8587,7 +8688,7 @@ var historyCommand = new import_commander48.Command("history").description("NCS
|
|
|
8587
8688
|
ids: history.map((h) => String(h.id))
|
|
8588
8689
|
});
|
|
8589
8690
|
}).addCommand(historyGetCommand);
|
|
8590
|
-
var scheduleHistoryCommand = new
|
|
8691
|
+
var scheduleHistoryCommand = new import_commander49.Command("schedule-history").description("NCS workload \uC608\uC57D \uC2E4\uD589 \uD788\uC2A4\uD1A0\uB9AC\uB97C \uC870\uD68C\uD55C\uB2E4").argument("<id>", "workload ID").option("--region <region>", "NCS region (\uAE30\uBCF8: kr1, kr1/kr3 \uB9CC \uC9C0\uC6D0)", "kr1").option("--profile <name>", "\uC0AC\uC6A9\uD560 profile \uC774\uB984").action(async (id, _opts, cmd) => {
|
|
8591
8692
|
const opts = cmd.optsWithGlobals();
|
|
8592
8693
|
requireNonEmpty(id, "id");
|
|
8593
8694
|
const { client } = await resolveNcsClient(opts);
|
|
@@ -8608,7 +8709,7 @@ var scheduleHistoryCommand = new import_commander48.Command("schedule-history").
|
|
|
8608
8709
|
ids: scheduleHistory.map((s) => s.id)
|
|
8609
8710
|
});
|
|
8610
8711
|
});
|
|
8611
|
-
var createCommand7 = new
|
|
8712
|
+
var createCommand7 = new import_commander49.Command("create").description("NCS workload(\uB7F0\uD0C0\uC784 \uC2E4\uD589) \uB97C \uC0DD\uC131\uD55C\uB2E4 (--file \uB85C JSON spec \uC804\uB2EC)").requiredOption("--file <path>", "workload \uC0DD\uC131 spec \uC774 \uB2F4\uAE34 JSON \uD30C\uC77C \uACBD\uB85C").option("--wait", "workload \uAC00 Running \uC0C1\uD0DC\uAC00 \uB420 \uB54C\uAE4C\uC9C0 \uB300\uAE30").option("--timeout <sec>", "wait \uD0C0\uC784\uC544\uC6C3 (\uCD08, \uAE30\uBCF8 300)", "300").option("--region <region>", "NCS region (\uAE30\uBCF8: kr1, kr1/kr3 \uB9CC \uC9C0\uC6D0)", "kr1").option("--profile <name>", "\uC0AC\uC6A9\uD560 profile \uC774\uB984").action(async (_opts, cmd) => {
|
|
8612
8713
|
const opts = cmd.optsWithGlobals();
|
|
8613
8714
|
const payload = readJsonPayload(opts.file);
|
|
8614
8715
|
const timeoutMs = parsePositiveIntegerOption(opts.timeout ?? "300", "--timeout") * 1e3;
|
|
@@ -8639,7 +8740,7 @@ var createCommand7 = new import_commander48.Command("create").description("NCS w
|
|
|
8639
8740
|
ids: [workload.id]
|
|
8640
8741
|
});
|
|
8641
8742
|
});
|
|
8642
|
-
var updateCommand = new
|
|
8743
|
+
var updateCommand = new import_commander49.Command("update").description("NCS workload \uB97C \uC804\uCCB4 \uAD50\uCCB4\uD55C\uB2E4 (--file \uB85C JSON spec \uC804\uB2EC, PUT)").argument("<id>", "workload ID").requiredOption("--file <path>", "workload \uAD50\uCCB4 spec \uC774 \uB2F4\uAE34 JSON \uD30C\uC77C \uACBD\uB85C").option("--region <region>", "NCS region (\uAE30\uBCF8: kr1, kr1/kr3 \uB9CC \uC9C0\uC6D0)", "kr1").option("--profile <name>", "\uC0AC\uC6A9\uD560 profile \uC774\uB984").action(async (id, _opts, cmd) => {
|
|
8643
8744
|
const opts = cmd.optsWithGlobals();
|
|
8644
8745
|
requireNonEmpty(id, "id");
|
|
8645
8746
|
const payload = readJsonPayload(opts.file);
|
|
@@ -8660,7 +8761,7 @@ var updateCommand = new import_commander48.Command("update").description("NCS wo
|
|
|
8660
8761
|
ids: [workload.id]
|
|
8661
8762
|
});
|
|
8662
8763
|
});
|
|
8663
|
-
var patchCommand = new
|
|
8764
|
+
var patchCommand = new import_commander49.Command("patch").description("NCS workload \uB97C \uBD80\uBD84 \uBCC0\uACBD\uD55C\uB2E4 (--file \uB85C JSON Patch \uBC30\uC5F4 \uC804\uB2EC, RFC 6902)").argument("<id>", "workload ID").requiredOption("--file <path>", "JSON Patch \uBC30\uC5F4(op/path/value)\uC774 \uB2F4\uAE34 \uD30C\uC77C \uACBD\uB85C").option("--region <region>", "NCS region (\uAE30\uBCF8: kr1, kr1/kr3 \uB9CC \uC9C0\uC6D0)", "kr1").option("--profile <name>", "\uC0AC\uC6A9\uD560 profile \uC774\uB984").action(async (id, _opts, cmd) => {
|
|
8664
8765
|
const opts = cmd.optsWithGlobals();
|
|
8665
8766
|
requireNonEmpty(id, "id");
|
|
8666
8767
|
const payload = readJsonPayload(opts.file);
|
|
@@ -8681,7 +8782,7 @@ var patchCommand = new import_commander48.Command("patch").description("NCS work
|
|
|
8681
8782
|
ids: [workload.id]
|
|
8682
8783
|
});
|
|
8683
8784
|
});
|
|
8684
|
-
var pauseCommand = new
|
|
8785
|
+
var pauseCommand = new import_commander49.Command("pause").description("NCS workload \uB97C \uC77C\uC2DC\uC815\uC9C0\uD55C\uB2E4").argument("<id>", "workload ID").option("--region <region>", "NCS region (\uAE30\uBCF8: kr1, kr1/kr3 \uB9CC \uC9C0\uC6D0)", "kr1").option("--profile <name>", "\uC0AC\uC6A9\uD560 profile \uC774\uB984").action(async (id, _opts, cmd) => {
|
|
8685
8786
|
const opts = cmd.optsWithGlobals();
|
|
8686
8787
|
requireNonEmpty(id, "id");
|
|
8687
8788
|
const { client } = await resolveNcsClient(opts);
|
|
@@ -8696,7 +8797,7 @@ var pauseCommand = new import_commander48.Command("pause").description("NCS work
|
|
|
8696
8797
|
process.stderr.write(import_chalk17.default.green(`\u2713 NCS workload "${id}" \uAC00 \uC77C\uC2DC\uC815\uC9C0\uB418\uC5C8\uC2B5\uB2C8\uB2E4.
|
|
8697
8798
|
`));
|
|
8698
8799
|
});
|
|
8699
|
-
var resumeCommand = new
|
|
8800
|
+
var resumeCommand = new import_commander49.Command("resume").description("NCS workload \uB97C \uC7AC\uAC1C\uD55C\uB2E4").argument("<id>", "workload ID").option("--region <region>", "NCS region (\uAE30\uBCF8: kr1, kr1/kr3 \uB9CC \uC9C0\uC6D0)", "kr1").option("--profile <name>", "\uC0AC\uC6A9\uD560 profile \uC774\uB984").action(async (id, _opts, cmd) => {
|
|
8700
8801
|
const opts = cmd.optsWithGlobals();
|
|
8701
8802
|
requireNonEmpty(id, "id");
|
|
8702
8803
|
const { client } = await resolveNcsClient(opts);
|
|
@@ -8711,7 +8812,7 @@ var resumeCommand = new import_commander48.Command("resume").description("NCS wo
|
|
|
8711
8812
|
process.stderr.write(import_chalk17.default.green(`\u2713 NCS workload "${id}" \uAC00 \uC7AC\uAC1C\uB418\uC5C8\uC2B5\uB2C8\uB2E4.
|
|
8712
8813
|
`));
|
|
8713
8814
|
});
|
|
8714
|
-
var restartCommand = new
|
|
8815
|
+
var restartCommand = new import_commander49.Command("restart").description("NCS workload task \uB97C \uC7AC\uC2DC\uC791\uD55C\uB2E4").argument("<id>", "workload ID").option("--region <region>", "NCS region (\uAE30\uBCF8: kr1, kr1/kr3 \uB9CC \uC9C0\uC6D0)", "kr1").option("--profile <name>", "\uC0AC\uC6A9\uD560 profile \uC774\uB984").option("--task <taskId>", "task ID (\uD544\uC218)").action(async (id, _opts, cmd) => {
|
|
8715
8816
|
const opts = cmd.optsWithGlobals();
|
|
8716
8817
|
requireNonEmpty(id, "id");
|
|
8717
8818
|
if (!opts.task || !opts.task.trim()) {
|
|
@@ -8734,7 +8835,7 @@ var restartCommand = new import_commander48.Command("restart").description("NCS
|
|
|
8734
8835
|
`)
|
|
8735
8836
|
);
|
|
8736
8837
|
});
|
|
8737
|
-
var deleteCommand6 = new
|
|
8838
|
+
var deleteCommand6 = new import_commander49.Command("delete").description("NCS workload \uB97C \uC0AD\uC81C\uD55C\uB2E4").argument("<id>", "workload ID").option("--yes", "\uD655\uC778 \uD504\uB86C\uD504\uD2B8 \uC0DD\uB7B5 (CI/\uBE44\uB300\uD654\uD615 \uD544\uC218)").option("--region <region>", "NCS region (\uAE30\uBCF8: kr1, kr1/kr3 \uB9CC \uC9C0\uC6D0)", "kr1").option("--profile <name>", "\uC0AC\uC6A9\uD560 profile \uC774\uB984").action(async (id, _opts, cmd) => {
|
|
8738
8839
|
const opts = cmd.optsWithGlobals();
|
|
8739
8840
|
requireNonEmpty(id, "id");
|
|
8740
8841
|
const ok = await confirmDestructive(`NCS workload "${id}" \uB97C \uC0AD\uC81C\uD558\uC2DC\uACA0\uC2B5\uB2C8\uAE4C?`, opts.yes);
|
|
@@ -8754,10 +8855,10 @@ var deleteCommand6 = new import_commander48.Command("delete").description("NCS w
|
|
|
8754
8855
|
process.stderr.write(import_chalk17.default.green(`\u2713 NCS workload "${id}" \uAC00 \uC0AD\uC81C\uB418\uC5C8\uC2B5\uB2C8\uB2E4.
|
|
8755
8856
|
`));
|
|
8756
8857
|
});
|
|
8757
|
-
var workloadCommand = new
|
|
8858
|
+
var workloadCommand = new import_commander49.Command("workload").description("NCS workload(\uB7F0\uD0C0\uC784 \uC2E4\uD589) \uAD00\uB9AC").addCommand(listCommand9).addCommand(getCommand7).addCommand(logsCommand).addCommand(eventsCommand2).addCommand(historyCommand).addCommand(scheduleHistoryCommand).addCommand(createCommand7).addCommand(updateCommand).addCommand(patchCommand).addCommand(pauseCommand).addCommand(resumeCommand).addCommand(restartCommand).addCommand(deleteCommand6);
|
|
8758
8859
|
|
|
8759
8860
|
// src/commands/ncs/malware.ts
|
|
8760
|
-
var
|
|
8861
|
+
var import_commander50 = require("commander");
|
|
8761
8862
|
function parseEnabledOption(value) {
|
|
8762
8863
|
if (value === "true") return true;
|
|
8763
8864
|
if (value === "false") return false;
|
|
@@ -8766,7 +8867,7 @@ function parseEnabledOption(value) {
|
|
|
8766
8867
|
EXIT_PARAM_ERROR
|
|
8767
8868
|
);
|
|
8768
8869
|
}
|
|
8769
|
-
var configGetCommand = new
|
|
8870
|
+
var configGetCommand = new import_commander50.Command("get").description("NCS \uC545\uC131\uCF54\uB4DC \uAC80\uC0AC \uC124\uC815\uC744 \uC870\uD68C\uD55C\uB2E4").option("--region <region>", "NCS region (\uAE30\uBCF8: kr1, kr1/kr3 \uB9CC \uC9C0\uC6D0)", "kr1").option("--profile <name>", "\uC0AC\uC6A9\uD560 profile \uC774\uB984").action(async (_opts, cmd) => {
|
|
8770
8871
|
const opts = cmd.optsWithGlobals();
|
|
8771
8872
|
const { client } = await resolveNcsClient(opts);
|
|
8772
8873
|
startSpinner("NCS \uC545\uC131\uCF54\uB4DC \uAC80\uC0AC \uC124\uC815 \uC870\uD68C \uC911...");
|
|
@@ -8785,7 +8886,7 @@ var configGetCommand = new import_commander49.Command("get").description("NCS \u
|
|
|
8785
8886
|
ids: []
|
|
8786
8887
|
});
|
|
8787
8888
|
});
|
|
8788
|
-
var configSetCommand = new
|
|
8889
|
+
var configSetCommand = new import_commander50.Command("set").description("NCS \uC545\uC131\uCF54\uB4DC \uAC80\uC0AC \uC124\uC815\uC744 \uBCC0\uACBD\uD55C\uB2E4").requiredOption("--enabled <true|false>", "\uC545\uC131\uCF54\uB4DC \uAC80\uC0AC \uC0AC\uC6A9 \uC5EC\uBD80").option("--region <region>", "NCS region (\uAE30\uBCF8: kr1, kr1/kr3 \uB9CC \uC9C0\uC6D0)", "kr1").option("--profile <name>", "\uC0AC\uC6A9\uD560 profile \uC774\uB984").action(async (_opts, cmd) => {
|
|
8789
8890
|
const opts = cmd.optsWithGlobals();
|
|
8790
8891
|
const enabled = parseEnabledOption(opts.enabled);
|
|
8791
8892
|
const { client } = await resolveNcsClient(opts);
|
|
@@ -8805,8 +8906,8 @@ var configSetCommand = new import_commander49.Command("set").description("NCS \u
|
|
|
8805
8906
|
ids: []
|
|
8806
8907
|
});
|
|
8807
8908
|
});
|
|
8808
|
-
var configCommand = new
|
|
8809
|
-
var resultCommand = new
|
|
8909
|
+
var configCommand = new import_commander50.Command("config").description("NCS \uC545\uC131\uCF54\uB4DC \uAC80\uC0AC \uC124\uC815 \uAD00\uB9AC").addCommand(configGetCommand).addCommand(configSetCommand);
|
|
8910
|
+
var resultCommand = new import_commander50.Command("result").description("NCS workload \uC2E4\uD589 \uD788\uC2A4\uD1A0\uB9AC\uC758 \uC545\uC131\uCF54\uB4DC \uAC80\uC0AC \uACB0\uACFC\uB97C \uC870\uD68C\uD55C\uB2E4").argument("<workloadId>", "workload ID").argument("<historyId>", "\uD788\uC2A4\uD1A0\uB9AC ID").option("--region <region>", "NCS region (\uAE30\uBCF8: kr1, kr1/kr3 \uB9CC \uC9C0\uC6D0)", "kr1").option("--profile <name>", "\uC0AC\uC6A9\uD560 profile \uC774\uB984").action(async (workloadId, historyId, _opts, cmd) => {
|
|
8810
8911
|
const opts = cmd.optsWithGlobals();
|
|
8811
8912
|
requireNonEmpty(workloadId, "workloadId");
|
|
8812
8913
|
requireNonEmpty(historyId, "historyId");
|
|
@@ -8837,10 +8938,10 @@ var resultCommand = new import_commander49.Command("result").description("NCS wo
|
|
|
8837
8938
|
ids: []
|
|
8838
8939
|
});
|
|
8839
8940
|
});
|
|
8840
|
-
var malwareCommand = new
|
|
8941
|
+
var malwareCommand = new import_commander50.Command("malware").description("NCS \uC545\uC131\uCF54\uB4DC \uAC80\uC0AC \uAD00\uB9AC").addCommand(configCommand).addCommand(resultCommand);
|
|
8841
8942
|
|
|
8842
8943
|
// src/commands/apigateway/service.ts
|
|
8843
|
-
var
|
|
8944
|
+
var import_commander51 = require("commander");
|
|
8844
8945
|
|
|
8845
8946
|
// src/commands/apigateway/helpers.ts
|
|
8846
8947
|
var import_promises8 = require("fs/promises");
|
|
@@ -9530,6 +9631,7 @@ async function resolveApiGatewayAppKey(profileName) {
|
|
|
9530
9631
|
}
|
|
9531
9632
|
async function resolveApiGatewayClient(opts) {
|
|
9532
9633
|
const profileName = await resolveProfileName(opts.profile);
|
|
9634
|
+
await requireRealEnvironment(profileName, "API Gateway");
|
|
9533
9635
|
const uak = await getUserAccessKey(profileName);
|
|
9534
9636
|
const accessToken = await getAccessToken(profileName, uak.id, uak.secret);
|
|
9535
9637
|
const appKey = await resolveApiGatewayAppKey(profileName);
|
|
@@ -9540,7 +9642,7 @@ async function resolveApiGatewayClient(opts) {
|
|
|
9540
9642
|
}
|
|
9541
9643
|
|
|
9542
9644
|
// src/commands/apigateway/service.ts
|
|
9543
|
-
var listCommand10 = new
|
|
9645
|
+
var listCommand10 = new import_commander51.Command("list").description("API Gateway service \uBAA9\uB85D\uC744 \uC870\uD68C\uD55C\uB2E4 (\uC804\uCCB4 \uD544\uB4DC\uB294 --json)").option("--region <region>", "API Gateway region (\uAE30\uBCF8: kr1)", "kr1").option("--profile <name>", "\uC0AC\uC6A9\uD560 profile \uC774\uB984").action(async (_opts, command) => {
|
|
9544
9646
|
const opts = command.optsWithGlobals();
|
|
9545
9647
|
const { client } = await resolveApiGatewayClient(opts);
|
|
9546
9648
|
startSpinner("API Gateway service \uBAA9\uB85D \uC870\uD68C \uC911...");
|
|
@@ -9571,7 +9673,7 @@ var listCommand10 = new import_commander50.Command("list").description("API Gate
|
|
|
9571
9673
|
ids: services.map((service) => sanitizeForTerminal(service.apigwServiceId))
|
|
9572
9674
|
});
|
|
9573
9675
|
});
|
|
9574
|
-
var getCommand8 = new
|
|
9676
|
+
var getCommand8 = new import_commander51.Command("get").description("API Gateway service \uD55C \uAC74\uC744 \uC870\uD68C\uD55C\uB2E4 (\uC804\uCCB4 \uD544\uB4DC\uB294 --json)").argument("<service-id>", "API Gateway service ID").option("--region <region>", "API Gateway region (\uAE30\uBCF8: kr1)", "kr1").option("--profile <name>", "\uC0AC\uC6A9\uD560 profile \uC774\uB984").action(async (serviceId, _opts, command) => {
|
|
9575
9677
|
const opts = command.optsWithGlobals();
|
|
9576
9678
|
const parsedServiceId = parseRequiredArgument(serviceId, "service-id");
|
|
9577
9679
|
const displayServiceId = sanitizeForTerminal(parsedServiceId);
|
|
@@ -9604,10 +9706,10 @@ var getCommand8 = new import_commander50.Command("get").description("API Gateway
|
|
|
9604
9706
|
ids: [sanitizeForTerminal(service.apigwServiceId)]
|
|
9605
9707
|
});
|
|
9606
9708
|
});
|
|
9607
|
-
var serviceCommand = new
|
|
9709
|
+
var serviceCommand = new import_commander51.Command("service").description("API Gateway service \uC870\uD68C \uBA85\uB839").addCommand(listCommand10).addCommand(getCommand8);
|
|
9608
9710
|
|
|
9609
9711
|
// src/commands/apigateway/resource.ts
|
|
9610
|
-
var
|
|
9712
|
+
var import_commander52 = require("commander");
|
|
9611
9713
|
function addApiGatewayOptions(command) {
|
|
9612
9714
|
return command.option("--region <region>", "API Gateway region (\uAE30\uBCF8: kr1)", "kr1").option("--profile <name>", "\uC0AC\uC6A9\uD560 profile \uC774\uB984");
|
|
9613
9715
|
}
|
|
@@ -9689,7 +9791,7 @@ function updatedResourceOutput(opts, resources) {
|
|
|
9689
9791
|
});
|
|
9690
9792
|
}
|
|
9691
9793
|
var listCommand11 = addApiGatewayOptions(
|
|
9692
|
-
new
|
|
9794
|
+
new import_commander52.Command("list").description("API Gateway resource \uBAA9\uB85D\uC744 \uC870\uD68C\uD55C\uB2E4 (\uC804\uCCB4 \uD544\uB4DC\uB294 --json)").argument("<service-id>", "API Gateway service ID")
|
|
9693
9795
|
).action(async (serviceId, _opts, command) => {
|
|
9694
9796
|
const opts = command.optsWithGlobals();
|
|
9695
9797
|
const parsedServiceId = parseRequiredArgument(serviceId, "service-id");
|
|
@@ -9718,7 +9820,7 @@ var listCommand11 = addApiGatewayOptions(
|
|
|
9718
9820
|
});
|
|
9719
9821
|
});
|
|
9720
9822
|
var parametersCommand = addApiGatewayOptions(
|
|
9721
|
-
new
|
|
9823
|
+
new import_commander52.Command("parameters").description("API Gateway resource \uC694\uCCAD parameter\uB97C \uC870\uD68C\uD55C\uB2E4 (\uC804\uCCB4 \uD544\uB4DC\uB294 --json)").argument("<service-id>", "API Gateway service ID").argument("<resource-id>", "API Gateway resource ID")
|
|
9722
9824
|
).action(async (serviceId, resourceId2, _opts, command) => {
|
|
9723
9825
|
const opts = command.optsWithGlobals();
|
|
9724
9826
|
const parsedServiceId = parseRequiredArgument(serviceId, "service-id");
|
|
@@ -9747,7 +9849,7 @@ var parametersCommand = addApiGatewayOptions(
|
|
|
9747
9849
|
});
|
|
9748
9850
|
});
|
|
9749
9851
|
var responsesCommand = addApiGatewayOptions(
|
|
9750
|
-
new
|
|
9852
|
+
new import_commander52.Command("responses").description("API Gateway resource \uC751\uB2F5 \uC815\uC758\uB97C \uC870\uD68C\uD55C\uB2E4 (\uC804\uCCB4 \uD544\uB4DC\uB294 --json)").argument("<service-id>", "API Gateway service ID").argument("<resource-id>", "API Gateway resource ID")
|
|
9751
9853
|
).action(async (serviceId, resourceId2, _opts, command) => {
|
|
9752
9854
|
const opts = command.optsWithGlobals();
|
|
9753
9855
|
const parsedServiceId = parseRequiredArgument(serviceId, "service-id");
|
|
@@ -9773,7 +9875,7 @@ var responsesCommand = addApiGatewayOptions(
|
|
|
9773
9875
|
});
|
|
9774
9876
|
});
|
|
9775
9877
|
var setPathPluginCommand = addApiGatewayOptions(
|
|
9776
|
-
new
|
|
9878
|
+
new import_commander52.Command("set-path-plugin").description("API Gateway resource \uACBD\uB85C \uD50C\uB7EC\uADF8\uC778\uC744 \uC124\uC815\uD55C\uB2E4").argument("<service-id>", "API Gateway service ID").argument("<resource-id>", "API Gateway resource ID").requiredOption("--config-file <path>", "\uD50C\uB7EC\uADF8\uC778 \uC124\uC815 JSON \uD30C\uC77C").option("--dry-run", "\uC4F0\uAE30 \uC5C6\uC774 \uC608\uC0C1 \uC601\uD5A5 \uBC94\uC704\uB97C \uCD9C\uB825\uD55C\uB2E4").option("--yes", "\uB9AC\uC18C\uC2A4 \uACBD\uB85C \uD50C\uB7EC\uADF8\uC778 \uC124\uC815\uC744 \uD655\uC778\uD55C\uB2E4")
|
|
9777
9879
|
).action(async (serviceId, resourceId2, _opts, command) => {
|
|
9778
9880
|
const opts = command.optsWithGlobals();
|
|
9779
9881
|
const parsedServiceId = parseRequiredArgument(serviceId, "service-id");
|
|
@@ -9847,7 +9949,7 @@ var setPathPluginCommand = addApiGatewayOptions(
|
|
|
9847
9949
|
updatedResourceOutput(opts, updatedResources);
|
|
9848
9950
|
});
|
|
9849
9951
|
var setMethodPluginCommand = addApiGatewayOptions(
|
|
9850
|
-
new
|
|
9952
|
+
new import_commander52.Command("set-method-plugin").description("API Gateway resource \uBA54\uC11C\uB4DC \uD50C\uB7EC\uADF8\uC778\uC744 \uC124\uC815\uD55C\uB2E4").argument("<service-id>", "API Gateway service ID").argument("<resource-id>", "API Gateway resource ID").requiredOption("--config-file <path>", "\uD50C\uB7EC\uADF8\uC778 \uC124\uC815 JSON \uD30C\uC77C").option("--dry-run", "\uC4F0\uAE30 \uC5C6\uC774 \uC608\uC0C1 \uBCC0\uACBD \uB0B4\uC6A9\uC744 \uCD9C\uB825\uD55C\uB2E4").option("--yes", "\uB9AC\uC18C\uC2A4 \uBA54\uC11C\uB4DC \uD50C\uB7EC\uADF8\uC778 \uC124\uC815\uC744 \uD655\uC778\uD55C\uB2E4")
|
|
9851
9953
|
).action(async (serviceId, resourceId2, _opts, command) => {
|
|
9852
9954
|
const opts = command.optsWithGlobals();
|
|
9853
9955
|
const parsedServiceId = parseRequiredArgument(serviceId, "service-id");
|
|
@@ -9935,19 +10037,19 @@ var setMethodPluginCommand = addApiGatewayOptions(
|
|
|
9935
10037
|
}
|
|
9936
10038
|
updatedResourceOutput(opts, updatedResources);
|
|
9937
10039
|
});
|
|
9938
|
-
var resourceCommand = new
|
|
10040
|
+
var resourceCommand = new import_commander52.Command("resource").description("API Gateway resource \uC870\uD68C \uBC0F \uBCC0\uACBD \uBA85\uB839").addCommand(listCommand11).addCommand(parametersCommand).addCommand(responsesCommand).addCommand(setPathPluginCommand).addCommand(setMethodPluginCommand);
|
|
9939
10041
|
|
|
9940
10042
|
// src/commands/apigateway/stage.ts
|
|
9941
10043
|
var import_promises9 = require("fs/promises");
|
|
9942
|
-
var
|
|
10044
|
+
var import_commander54 = require("commander");
|
|
9943
10045
|
|
|
9944
10046
|
// src/commands/apigateway/deploy.ts
|
|
9945
|
-
var
|
|
10047
|
+
var import_commander53 = require("commander");
|
|
9946
10048
|
function addApiGatewayOptions2(command) {
|
|
9947
10049
|
return command.option("--region <region>", "API Gateway region (\uAE30\uBCF8: kr1)", "kr1").option("--profile <name>", "\uC0AC\uC6A9\uD560 profile \uC774\uB984");
|
|
9948
10050
|
}
|
|
9949
10051
|
var listCommand12 = addApiGatewayOptions2(
|
|
9950
|
-
new
|
|
10052
|
+
new import_commander53.Command("list").description("API Gateway stage \uBC30\uD3EC \uC774\uB825 \uBAA9\uB85D\uC744 \uC870\uD68C\uD55C\uB2E4 (\uC804\uCCB4 \uD544\uB4DC\uB294 --json)").argument("<service-id>", "API Gateway service ID").argument("<stage-id>", "API Gateway stage ID")
|
|
9951
10053
|
).action(async (serviceId, stageId, _opts, command) => {
|
|
9952
10054
|
const opts = command.optsWithGlobals();
|
|
9953
10055
|
const parsedServiceId = parseRequiredArgument(serviceId, "service-id");
|
|
@@ -9976,7 +10078,7 @@ var listCommand12 = addApiGatewayOptions2(
|
|
|
9976
10078
|
});
|
|
9977
10079
|
});
|
|
9978
10080
|
var latestCommand = addApiGatewayOptions2(
|
|
9979
|
-
new
|
|
10081
|
+
new import_commander53.Command("latest").description("API Gateway stage \uCD5C\uC2E0 \uBC30\uD3EC \uACB0\uACFC\uB97C \uC870\uD68C\uD55C\uB2E4 (resource \uC804\uCCB4\uB294 --json)").argument("<service-id>", "API Gateway service ID").argument("<stage-id>", "API Gateway stage ID")
|
|
9980
10082
|
).action(async (serviceId, stageId, _opts, command) => {
|
|
9981
10083
|
const opts = command.optsWithGlobals();
|
|
9982
10084
|
const parsedServiceId = parseRequiredArgument(serviceId, "service-id");
|
|
@@ -10006,7 +10108,7 @@ var latestCommand = addApiGatewayOptions2(
|
|
|
10006
10108
|
});
|
|
10007
10109
|
});
|
|
10008
10110
|
var createCommand8 = addApiGatewayOptions2(
|
|
10009
|
-
new
|
|
10111
|
+
new import_commander53.Command("create").description("stage \uC124\uC815\uC744 API Gateway service \uC5D0 \uBC30\uD3EC\uD55C\uB2E4").argument("<service-id>", "API Gateway service ID").argument("<stage-id>", "API Gateway stage ID").option("--description <text>", "\uBC30\uD3EC \uC124\uBA85 (\uCD5C\uB300 200\uC790)").option("--no-wait", "\uBC30\uD3EC \uACB0\uACFC\uB97C \uAE30\uB2E4\uB9AC\uC9C0 \uC54A\uACE0 \uC694\uCCAD\uB9CC \uD55C\uB2E4").option("--timeout <sec>", "\uBC30\uD3EC \uB300\uAE30 \uC0C1\uD55C (\uCD08, \uAE30\uBCF8 300)", "300").option("--yes", "\uBC30\uD3EC\uB97C \uD655\uC778\uD55C\uB2E4")
|
|
10010
10112
|
).action(async (serviceId, stageId, _opts, command) => {
|
|
10011
10113
|
const opts = command.optsWithGlobals();
|
|
10012
10114
|
const parsedServiceId = parseRequiredArgument(serviceId, "service-id");
|
|
@@ -10104,7 +10206,7 @@ var createCommand8 = addApiGatewayOptions2(
|
|
|
10104
10206
|
});
|
|
10105
10207
|
});
|
|
10106
10208
|
var rollbackCommand = addApiGatewayOptions2(
|
|
10107
|
-
new
|
|
10209
|
+
new import_commander53.Command("rollback").description("\uBC30\uD3EC \uC774\uB825\uC73C\uB85C stage \uC124\uC815\uC744 \uB418\uB3CC\uB9B0\uB2E4").argument("<service-id>", "API Gateway service ID").argument("<stage-id>", "API Gateway stage ID").argument("<deploy-id>", "\uB418\uB3CC\uB9B4 \uBC30\uD3EC ID").option("--yes", "\uB418\uB3CC\uB9AC\uAE30\uB97C \uD655\uC778\uD55C\uB2E4")
|
|
10108
10210
|
).action(async (serviceId, stageId, deployId, _opts, command) => {
|
|
10109
10211
|
const opts = command.optsWithGlobals();
|
|
10110
10212
|
const parsedServiceId = parseRequiredArgument(serviceId, "service-id");
|
|
@@ -10132,7 +10234,7 @@ var rollbackCommand = addApiGatewayOptions2(
|
|
|
10132
10234
|
);
|
|
10133
10235
|
process.stderr.write("\uC644\uB8CC: \uC9C1\uC804\uAE4C\uC9C0\uC758 \uC2A4\uD14C\uC774\uC9C0 \uC124\uC815\uC740 \uC774 \uBC30\uD3EC \uC774\uB825\uC758 \uB0B4\uC6A9\uC73C\uB85C \uB300\uCCB4\uB410\uC2B5\uB2C8\uB2E4.\n");
|
|
10134
10236
|
});
|
|
10135
|
-
var deployCommand = new
|
|
10237
|
+
var deployCommand = new import_commander53.Command("deploy").description("API Gateway stage \uBC30\uD3EC \uC870\uD68C\uC640 \uC2E4\uD589 \uBA85\uB839").addCommand(listCommand12).addCommand(latestCommand).addCommand(createCommand8).addCommand(rollbackCommand);
|
|
10136
10238
|
|
|
10137
10239
|
// src/commands/apigateway/stage.ts
|
|
10138
10240
|
function addApiGatewayOptions3(command) {
|
|
@@ -10161,7 +10263,7 @@ async function writeStageSwaggerFile(path5, swagger, force) {
|
|
|
10161
10263
|
}
|
|
10162
10264
|
}
|
|
10163
10265
|
var listCommand13 = addApiGatewayOptions3(
|
|
10164
|
-
new
|
|
10266
|
+
new import_commander54.Command("list").description("API Gateway stage \uBAA9\uB85D\uC744 \uC870\uD68C\uD55C\uB2E4 (resourceUpdatedAt\uC740 \uB9AC\uC18C\uC2A4 \uBC18\uC601 \uC2DC\uAC01)").argument("<service-id>", "API Gateway service ID")
|
|
10165
10267
|
).action(async (serviceId, _opts, command) => {
|
|
10166
10268
|
const opts = command.optsWithGlobals();
|
|
10167
10269
|
const parsedServiceId = parseRequiredArgument(serviceId, "service-id");
|
|
@@ -10190,7 +10292,7 @@ var listCommand13 = addApiGatewayOptions3(
|
|
|
10190
10292
|
});
|
|
10191
10293
|
});
|
|
10192
10294
|
var swaggerCommand = addApiGatewayOptions3(
|
|
10193
|
-
new
|
|
10295
|
+
new import_commander54.Command("swagger").description("API Gateway stage Swagger\uB97C \uCD9C\uB825\uD558\uAC70\uB098 \uC800\uC7A5\uD55C\uB2E4").argument("<service-id>", "API Gateway service ID").argument("<stage-id>", "API Gateway stage ID").option("--output <file>", "Swagger JSON \uC800\uC7A5 \uACBD\uB85C").option("--force", "\uAE30\uC874 \uD30C\uC77C \uB36E\uC5B4\uC4F0\uAE30")
|
|
10194
10296
|
).action(async (serviceId, stageId, _opts, command) => {
|
|
10195
10297
|
const opts = command.optsWithGlobals();
|
|
10196
10298
|
const parsedServiceId = parseRequiredArgument(serviceId, "service-id");
|
|
@@ -10214,7 +10316,7 @@ var swaggerCommand = addApiGatewayOptions3(
|
|
|
10214
10316
|
printJson(swagger);
|
|
10215
10317
|
});
|
|
10216
10318
|
var resourcesCommand = addApiGatewayOptions3(
|
|
10217
|
-
new
|
|
10319
|
+
new import_commander54.Command("resources").description("\uBC30\uD3EC\uB41C API Gateway stage resource \uBAA9\uB85D\uC744 \uC870\uD68C\uD55C\uB2E4 (\uC804\uCCB4 \uD544\uB4DC\uB294 --json)").argument("<service-id>", "API Gateway service ID").argument("<stage-id>", "API Gateway stage ID")
|
|
10218
10320
|
).action(async (serviceId, stageId, _opts, command) => {
|
|
10219
10321
|
const opts = command.optsWithGlobals();
|
|
10220
10322
|
const parsedServiceId = parseRequiredArgument(serviceId, "service-id");
|
|
@@ -10244,7 +10346,7 @@ var resourcesCommand = addApiGatewayOptions3(
|
|
|
10244
10346
|
});
|
|
10245
10347
|
});
|
|
10246
10348
|
var updateCommand2 = addApiGatewayOptions3(
|
|
10247
|
-
new
|
|
10349
|
+
new import_commander54.Command("update").description("API Gateway stage\uC758 backend endpoint URL\uACFC \uC124\uBA85\uC744 \uC218\uC815\uD55C\uB2E4").argument("<service-id>", "API Gateway service ID").argument("<stage-id>", "API Gateway stage ID").option("--backend-endpoint-url <url>", "\uBCC0\uACBD\uD560 backend endpoint URL").option("--description <text>", "\uBCC0\uACBD\uD560 stage \uC124\uBA85").option("--yes", "\uC2A4\uD14C\uC774\uC9C0 \uC218\uC815\uC744 \uD655\uC778\uD55C\uB2E4")
|
|
10248
10350
|
).action(async (serviceId, stageId, _opts, command) => {
|
|
10249
10351
|
const opts = command.optsWithGlobals();
|
|
10250
10352
|
const parsedServiceId = parseRequiredArgument(serviceId, "service-id");
|
|
@@ -10293,7 +10395,7 @@ var updateCommand2 = addApiGatewayOptions3(
|
|
|
10293
10395
|
process.stderr.write("\uC548\uB0B4: \uC2A4\uD14C\uC774\uC9C0 \uBCC0\uACBD \uD6C4 \uC2E4\uC81C \uD2B8\uB798\uD53D \uBC18\uC601 \uC0C1\uD0DC\uB97C \uD655\uC778\uD558\uC138\uC694.\n");
|
|
10294
10396
|
});
|
|
10295
10397
|
var importResourcesCommand = addApiGatewayOptions3(
|
|
10296
|
-
new
|
|
10398
|
+
new import_commander54.Command("import-resources").description("API Gateway service \uC758 \uB9AC\uC18C\uC2A4\uB97C stage \uB85C \uAC00\uC838\uC628\uB2E4").argument("<service-id>", "API Gateway service ID").argument("<stage-id>", "API Gateway stage ID").option("--yes", "\uC2A4\uD14C\uC774\uC9C0 \uBC18\uC601\uC744 \uD655\uC778\uD55C\uB2E4")
|
|
10297
10399
|
).action(async (serviceId, stageId, _opts, command) => {
|
|
10298
10400
|
const opts = command.optsWithGlobals();
|
|
10299
10401
|
const parsedServiceId = parseRequiredArgument(serviceId, "service-id");
|
|
@@ -10315,10 +10417,10 @@ var importResourcesCommand = addApiGatewayOptions3(
|
|
|
10315
10417
|
"\uC548\uB0B4: \uBC18\uC601\uC740 \uC2A4\uD14C\uC774\uC9C0 \uC124\uC815\uB9CC \uBC14\uAFC9\uB2C8\uB2E4. \uC11C\uBE44\uC2A4\uC5D0 \uC801\uC6A9\uD558\uB824\uBA74 apigateway stage deploy create \uB97C \uC2E4\uD589\uD558\uC138\uC694.\n"
|
|
10316
10418
|
);
|
|
10317
10419
|
});
|
|
10318
|
-
var stageCommand = new
|
|
10420
|
+
var stageCommand = new import_commander54.Command("stage").description("API Gateway stage \uC870\uD68C \uBC0F \uBCC0\uACBD \uBA85\uB839").addCommand(listCommand13).addCommand(swaggerCommand).addCommand(resourcesCommand).addCommand(updateCommand2).addCommand(importResourcesCommand).addCommand(deployCommand);
|
|
10319
10421
|
|
|
10320
10422
|
// src/commands/loadbalancer/list.ts
|
|
10321
|
-
var
|
|
10423
|
+
var import_commander55 = require("commander");
|
|
10322
10424
|
|
|
10323
10425
|
// src/commands/loadbalancer/helpers.ts
|
|
10324
10426
|
var import_node_net = require("net");
|
|
@@ -10691,7 +10793,7 @@ async function resolveLoadBalancerClient(opts) {
|
|
|
10691
10793
|
}
|
|
10692
10794
|
|
|
10693
10795
|
// src/commands/loadbalancer/list.ts
|
|
10694
|
-
var listCommand14 = new
|
|
10796
|
+
var listCommand14 = new import_commander55.Command("list").description("Load Balancer \uBAA9\uB85D\uC744 \uC870\uD68C\uD55C\uB2E4 (\uC804\uCCB4 \uD544\uB4DC\uB294 --json)").option("--region <region>", "region override (\uAE30\uBCF8: iaas \uC790\uACA9\uC99D\uBA85\uC758 region)").option("--profile <name>", "\uC0AC\uC6A9\uD560 profile \uC774\uB984").action(async (_opts, cmd) => {
|
|
10695
10797
|
const opts = cmd.optsWithGlobals();
|
|
10696
10798
|
const { client } = await resolveLoadBalancerClient(opts);
|
|
10697
10799
|
startSpinner("Load Balancer \uBAA9\uB85D \uC870\uD68C \uC911...");
|
|
@@ -10729,8 +10831,8 @@ var listCommand14 = new import_commander54.Command("list").description("Load Bal
|
|
|
10729
10831
|
});
|
|
10730
10832
|
|
|
10731
10833
|
// src/commands/loadbalancer/get.ts
|
|
10732
|
-
var
|
|
10733
|
-
var getCommand9 = new
|
|
10834
|
+
var import_commander56 = require("commander");
|
|
10835
|
+
var getCommand9 = new import_commander56.Command("get").description("Load Balancer\uB97C \uC774\uB984 \uB610\uB294 UUID\uB85C \uC870\uD68C\uD55C\uB2E4").argument("<loadbalancer>", "Load Balancer \uC774\uB984 \uB610\uB294 UUID").option("--region <region>", "region override (\uAE30\uBCF8: iaas \uC790\uACA9\uC99D\uBA85\uC758 region)").option("--profile <name>", "\uC0AC\uC6A9\uD560 profile \uC774\uB984").action(async (loadBalancerInput, _opts, cmd) => {
|
|
10734
10836
|
const opts = cmd.optsWithGlobals();
|
|
10735
10837
|
const input = requireResourceInput(loadBalancerInput, "Load Balancer");
|
|
10736
10838
|
const { client } = await resolveLoadBalancerClient(opts);
|
|
@@ -10767,10 +10869,10 @@ var getCommand9 = new import_commander55.Command("get").description("Load Balanc
|
|
|
10767
10869
|
});
|
|
10768
10870
|
|
|
10769
10871
|
// src/commands/loadbalancer/ipacl.ts
|
|
10770
|
-
var
|
|
10872
|
+
var import_commander58 = require("commander");
|
|
10771
10873
|
|
|
10772
10874
|
// src/commands/loadbalancer/target.ts
|
|
10773
|
-
var
|
|
10875
|
+
var import_commander57 = require("commander");
|
|
10774
10876
|
|
|
10775
10877
|
// src/commands/loadbalancer/rebind.ts
|
|
10776
10878
|
function shellQuote(value) {
|
|
@@ -10901,7 +11003,7 @@ function targetWriteResult(operation, target, rebind) {
|
|
|
10901
11003
|
rebind
|
|
10902
11004
|
};
|
|
10903
11005
|
}
|
|
10904
|
-
var listCommand15 = new
|
|
11006
|
+
var listCommand15 = new import_commander57.Command("list").description("IP ACL \uB300\uC0C1 \uBAA9\uB85D\uC744 \uC870\uD68C\uD55C\uB2E4").argument("<group>", "IP ACL \uADF8\uB8F9 \uC774\uB984 \uB610\uB294 UUID").option("--region <region>", "region override (\uAE30\uBCF8: iaas \uC790\uACA9\uC99D\uBA85\uC758 region)").option("--profile <name>", "\uC0AC\uC6A9\uD560 profile \uC774\uB984").action(async (groupInput, _opts, cmd) => {
|
|
10905
11007
|
const opts = cmd.optsWithGlobals();
|
|
10906
11008
|
const input = requireResourceInput(groupInput, "IP ACL \uADF8\uB8F9");
|
|
10907
11009
|
const { client } = await resolveLoadBalancerClient(opts);
|
|
@@ -10930,7 +11032,7 @@ var listCommand15 = new import_commander56.Command("list").description("IP ACL \
|
|
|
10930
11032
|
ids: targets.map((target) => target.id)
|
|
10931
11033
|
});
|
|
10932
11034
|
});
|
|
10933
|
-
var addCommand = new
|
|
11035
|
+
var addCommand = new import_commander57.Command("add").description("IP ACL \uB300\uC0C1\uC744 \uCD94\uAC00\uD558\uACE0 \uC5F0\uACB0\uB41C Load Balancer\uB97C \uC7AC\uBC14\uC778\uB529\uD55C\uB2E4").argument("<group>", "IP ACL \uADF8\uB8F9 \uC774\uB984 \uB610\uB294 UUID").requiredOption("--cidr <ip-or-cidr>", "\uCD94\uAC00\uD560 IP \uC8FC\uC18C \uB610\uB294 CIDR").option("--description <text>", "IP ACL \uB300\uC0C1 \uC124\uBA85").option("--no-rebind", "\uB300\uC0C1 \uCD94\uAC00 \uD6C4 Load Balancer \uC7AC\uBC14\uC778\uB529 \uC0DD\uB7B5").option("--yes", "\uB300\uC0C1 \uCD94\uAC00 \uD655\uC778").option("--region <region>", "region override (\uAE30\uBCF8: iaas \uC790\uACA9\uC99D\uBA85\uC758 region)").option("--profile <name>", "\uC0AC\uC6A9\uD560 profile \uC774\uB984").action(async (groupInput, _opts, cmd) => {
|
|
10934
11036
|
const opts = cmd.optsWithGlobals();
|
|
10935
11037
|
requireYes2(opts.yes, "IP ACL \uB300\uC0C1 \uCD94\uAC00");
|
|
10936
11038
|
const parsedGroup = requireResourceInput(groupInput, "IP ACL \uADF8\uB8F9");
|
|
@@ -10967,7 +11069,7 @@ var addCommand = new import_commander56.Command("add").description("IP ACL \uB30
|
|
|
10967
11069
|
writeTargetWarnings(group, result);
|
|
10968
11070
|
if (result.status === "partial") process.exitCode = EXIT_API_ERROR;
|
|
10969
11071
|
});
|
|
10970
|
-
var removeCommand = new
|
|
11072
|
+
var removeCommand = new import_commander57.Command("remove").description("IP ACL \uB300\uC0C1\uC744 \uC0AD\uC81C\uD558\uACE0 \uC5F0\uACB0\uB41C Load Balancer\uB97C \uC7AC\uBC14\uC778\uB529\uD55C\uB2E4").argument("<target-id>", "\uC0AD\uC81C\uD560 IP ACL \uB300\uC0C1 UUID").option("--no-rebind", "\uB300\uC0C1 \uC0AD\uC81C \uD6C4 Load Balancer \uC7AC\uBC14\uC778\uB529 \uC0DD\uB7B5").option("--yes", "\uB300\uC0C1 \uC0AD\uC81C \uD655\uC778").option("--region <region>", "region override (\uAE30\uBCF8: iaas \uC790\uACA9\uC99D\uBA85\uC758 region)").option("--profile <name>", "\uC0AC\uC6A9\uD560 profile \uC774\uB984").action(async (targetInput, _opts, cmd) => {
|
|
10971
11073
|
const opts = cmd.optsWithGlobals();
|
|
10972
11074
|
requireYes2(opts.yes, "IP ACL \uB300\uC0C1 \uC0AD\uC81C");
|
|
10973
11075
|
const parsedTargetId = requireResourceInput(targetInput, "IP ACL \uB300\uC0C1");
|
|
@@ -10998,13 +11100,13 @@ var removeCommand = new import_commander56.Command("remove").description("IP ACL
|
|
|
10998
11100
|
writeTargetWarnings(group, result);
|
|
10999
11101
|
if (result.status === "partial") process.exitCode = EXIT_API_ERROR;
|
|
11000
11102
|
});
|
|
11001
|
-
var targetCommand = new
|
|
11103
|
+
var targetCommand = new import_commander57.Command("target").description("IP ACL \uB300\uC0C1 \uC870\uD68C\xB7\uAD00\uB9AC");
|
|
11002
11104
|
targetCommand.addCommand(listCommand15);
|
|
11003
11105
|
targetCommand.addCommand(addCommand);
|
|
11004
11106
|
targetCommand.addCommand(removeCommand);
|
|
11005
11107
|
|
|
11006
11108
|
// src/commands/loadbalancer/ipacl.ts
|
|
11007
|
-
var listCommand16 = new
|
|
11109
|
+
var listCommand16 = new import_commander58.Command("list").description("IP ACL \uADF8\uB8F9 \uBAA9\uB85D\uC744 \uC870\uD68C\uD55C\uB2E4 (\uC804\uCCB4 \uD544\uB4DC\uB294 --json)").option("--region <region>", "region override (\uAE30\uBCF8: iaas \uC790\uACA9\uC99D\uBA85\uC758 region)").option("--profile <name>", "\uC0AC\uC6A9\uD560 profile \uC774\uB984").action(async (_opts, cmd) => {
|
|
11008
11110
|
const opts = cmd.optsWithGlobals();
|
|
11009
11111
|
const { client } = await resolveLoadBalancerClient(opts);
|
|
11010
11112
|
startSpinner("IP ACL \uADF8\uB8F9 \uBAA9\uB85D \uC870\uD68C \uC911...");
|
|
@@ -11032,7 +11134,7 @@ var listCommand16 = new import_commander57.Command("list").description("IP ACL \
|
|
|
11032
11134
|
ids: groups.map((group) => group.id)
|
|
11033
11135
|
});
|
|
11034
11136
|
});
|
|
11035
|
-
var getCommand10 = new
|
|
11137
|
+
var getCommand10 = new import_commander58.Command("get").description("IP ACL \uADF8\uB8F9\uC744 \uC774\uB984 \uB610\uB294 UUID\uB85C \uC870\uD68C\uD55C\uB2E4").argument("<group>", "IP ACL \uADF8\uB8F9 \uC774\uB984 \uB610\uB294 UUID").option("--region <region>", "region override (\uAE30\uBCF8: iaas \uC790\uACA9\uC99D\uBA85\uC758 region)").option("--profile <name>", "\uC0AC\uC6A9\uD560 profile \uC774\uB984").action(async (groupInput, _opts, cmd) => {
|
|
11036
11138
|
const opts = cmd.optsWithGlobals();
|
|
11037
11139
|
const input = requireResourceInput(groupInput, "IP ACL \uADF8\uB8F9");
|
|
11038
11140
|
const { client } = await resolveLoadBalancerClient(opts);
|
|
@@ -11065,7 +11167,7 @@ var getCommand10 = new import_commander57.Command("get").description("IP ACL \uA
|
|
|
11065
11167
|
ids: [group.id]
|
|
11066
11168
|
});
|
|
11067
11169
|
});
|
|
11068
|
-
var createCommand9 = new
|
|
11170
|
+
var createCommand9 = new import_commander58.Command("create").description("IP ACL \uADF8\uB8F9\uC744 \uC0DD\uC131\uD55C\uB2E4").requiredOption("--name <name>", "IP ACL \uADF8\uB8F9 \uC774\uB984").requiredOption("--action <ALLOW|DENY>", "IP \uC811\uADFC \uC81C\uC5B4 \uB3D9\uC791").option("--description <text>", "IP ACL \uADF8\uB8F9 \uC124\uBA85").option("--region <region>", "region override (\uAE30\uBCF8: iaas \uC790\uACA9\uC99D\uBA85\uC758 region)").option("--profile <name>", "\uC0AC\uC6A9\uD560 profile \uC774\uB984").action(async (_opts, cmd) => {
|
|
11069
11171
|
const opts = cmd.optsWithGlobals();
|
|
11070
11172
|
const parsedName = requireResourceInput(opts.name ?? "", "IP ACL \uADF8\uB8F9");
|
|
11071
11173
|
const parsedAction = parseIpAclAction(opts.action ?? "");
|
|
@@ -11096,7 +11198,7 @@ var createCommand9 = new import_commander57.Command("create").description("IP AC
|
|
|
11096
11198
|
ids: [group.id]
|
|
11097
11199
|
});
|
|
11098
11200
|
});
|
|
11099
|
-
var deleteCommand7 = new
|
|
11201
|
+
var deleteCommand7 = new import_commander58.Command("delete").description("IP ACL \uADF8\uB8F9\uACFC \uD558\uC704 \uB300\uC0C1\uC744 \uC0AD\uC81C\uD55C\uB2E4").argument("<group>", "IP ACL \uADF8\uB8F9 \uC774\uB984 \uB610\uB294 UUID").option("--yes", "\uC0AD\uC81C\uC640 \uC5F0\uACB0 \uADDC\uCE59 \uC81C\uAC70 \uD655\uC778").option("--region <region>", "region override (\uAE30\uBCF8: iaas \uC790\uACA9\uC99D\uBA85\uC758 region)").option("--profile <name>", "\uC0AC\uC6A9\uD560 profile \uC774\uB984").action(async (groupInput, _opts, cmd) => {
|
|
11100
11202
|
const opts = cmd.optsWithGlobals();
|
|
11101
11203
|
const confirmedYes = requireYes2(opts.yes, "IP ACL \uADF8\uB8F9 \uC0AD\uC81C");
|
|
11102
11204
|
const parsedGroup = requireResourceInput(groupInput, "IP ACL \uADF8\uB8F9");
|
|
@@ -11128,7 +11230,7 @@ var deleteCommand7 = new import_commander57.Command("delete").description("IP AC
|
|
|
11128
11230
|
ids: [groupId]
|
|
11129
11231
|
});
|
|
11130
11232
|
});
|
|
11131
|
-
var ipaclCommand = new
|
|
11233
|
+
var ipaclCommand = new import_commander58.Command("ipacl").description("IP ACL \uADF8\uB8F9\xB7\uB300\uC0C1 \uC870\uD68C");
|
|
11132
11234
|
ipaclCommand.addCommand(listCommand16);
|
|
11133
11235
|
ipaclCommand.addCommand(getCommand10);
|
|
11134
11236
|
ipaclCommand.addCommand(createCommand9);
|
|
@@ -11144,7 +11246,7 @@ function configureLoadBalancerHelp(command) {
|
|
|
11144
11246
|
}
|
|
11145
11247
|
|
|
11146
11248
|
// src/commands/loadbalancer/binding.ts
|
|
11147
|
-
var
|
|
11249
|
+
var import_commander59 = require("commander");
|
|
11148
11250
|
function bindingResult(operation, loadBalancerId, groupIds) {
|
|
11149
11251
|
return {
|
|
11150
11252
|
operation,
|
|
@@ -11166,7 +11268,7 @@ function outputBindingResult(opts, result) {
|
|
|
11166
11268
|
ids: [result.loadbalancer_id]
|
|
11167
11269
|
});
|
|
11168
11270
|
}
|
|
11169
|
-
var setIpAclCommand2 = new
|
|
11271
|
+
var setIpAclCommand2 = new import_commander59.Command("set-ipacl").description("Load Balancer\uC758 IP ACL \uADF8\uB8F9 \uC5F0\uACB0\uC744 \uC804\uCCB4 \uAD50\uCCB4\uD55C\uB2E4").argument("<loadbalancer>", "Load Balancer \uC774\uB984 \uB610\uB294 UUID").requiredOption(
|
|
11170
11272
|
"--group <group>",
|
|
11171
11273
|
"\uC801\uC6A9\uD560 IP ACL \uADF8\uB8F9 \uC774\uB984 \uB610\uB294 UUID (\uBC18\uBCF5 \uAC00\uB2A5)",
|
|
11172
11274
|
collectOption
|
|
@@ -11206,7 +11308,7 @@ var setIpAclCommand2 = new import_commander58.Command("set-ipacl").description("
|
|
|
11206
11308
|
bindingResult("loadbalancer-set-ipacl", loadBalancerId, groupIds)
|
|
11207
11309
|
);
|
|
11208
11310
|
});
|
|
11209
|
-
var clearIpAclCommand = new
|
|
11311
|
+
var clearIpAclCommand = new import_commander59.Command("clear-ipacl").description("Load Balancer\uC758 \uBAA8\uB4E0 IP ACL \uADF8\uB8F9 \uC5F0\uACB0\uC744 \uD574\uC81C\uD55C\uB2E4").argument("<loadbalancer>", "Load Balancer \uC774\uB984 \uB610\uB294 UUID").option("--yes", "\uBAA8\uB4E0 IP ACL \uC5F0\uACB0 \uD574\uC81C \uD655\uC778").option("--region <region>", "region override (\uAE30\uBCF8: iaas \uC790\uACA9\uC99D\uBA85\uC758 region)").option("--profile <name>", "\uC0AC\uC6A9\uD560 profile \uC774\uB984").action(async (loadBalancerInput, _opts, cmd) => {
|
|
11210
11312
|
const opts = cmd.optsWithGlobals();
|
|
11211
11313
|
const confirmedYes = requireYes2(opts.yes, "Load Balancer IP ACL \uC5F0\uACB0 \uD574\uC81C");
|
|
11212
11314
|
const parsedLoadBalancer = requireResourceInput(loadBalancerInput, "Load Balancer");
|
|
@@ -11295,8 +11397,8 @@ Agent workflow:
|
|
|
11295
11397
|
2. nhncloud ncs workload list --json
|
|
11296
11398
|
3. nhncloud ncs workload get <id> --json
|
|
11297
11399
|
`;
|
|
11298
|
-
var program = new
|
|
11299
|
-
program.name("nhncloud").description("NHN Cloud CLI \u2014 AI agent & terminal friendly").version("0.
|
|
11400
|
+
var program = new import_commander60.Command();
|
|
11401
|
+
program.name("nhncloud").description("NHN Cloud CLI \u2014 AI agent & terminal friendly").version("0.17.0").option("--json", "JSON \uD615\uC2DD\uC73C\uB85C \uCD9C\uB825").option("--quiet", "\uCD5C\uC18C \uCD9C\uB825 (\uC790\uB3D9\uD654\uC6A9)").option("--no-color", "\uC0C9\uC0C1 \uBE44\uD65C\uC131\uD654").option("--request-timeout <sec>", "HTTP \uC694\uCCAD \uD0C0\uC784\uC544\uC6C3 (\uCD08, \uAE30\uBCF8 30, \uBC94\uC704 1~3600). NHNCLOUD_REQUEST_TIMEOUT \uB85C\uB3C4 \uC9C0\uC815").addHelpText("after", rootAgentHints);
|
|
11300
11402
|
program.hook("preAction", () => {
|
|
11301
11403
|
const opts = program.opts();
|
|
11302
11404
|
const rawTimeout = opts.requestTimeout ?? process.env["NHNCLOUD_REQUEST_TIMEOUT"];
|
|
@@ -11317,26 +11419,27 @@ program.hook("preAction", () => {
|
|
|
11317
11419
|
}
|
|
11318
11420
|
});
|
|
11319
11421
|
program.addCommand(configureCommand);
|
|
11320
|
-
var logncrashCommand = new
|
|
11422
|
+
var logncrashCommand = new import_commander60.Command("logncrash").description("Log & Crash \uAD00\uB828 \uBA85\uB839").addHelpText("after", logncrashAgentWorkflow);
|
|
11321
11423
|
logncrashCommand.addCommand(availableTokenCommand);
|
|
11322
11424
|
logncrashCommand.addCommand(searchCommand);
|
|
11323
11425
|
logncrashCommand.addCommand(sendCommand);
|
|
11324
11426
|
logncrashCommand.addCommand(exportCommand);
|
|
11325
11427
|
program.addCommand(logncrashCommand);
|
|
11326
|
-
var deployCommand2 = new
|
|
11428
|
+
var deployCommand2 = new import_commander60.Command("deploy").description("NHN Cloud Deploy \uAD00\uB828 \uBA85\uB839").addHelpText("after", deployAgentWorkflow);
|
|
11327
11429
|
deployCommand2.hook("preSubcommand", async () => {
|
|
11328
11430
|
await warnLegacyDeployTargets();
|
|
11329
11431
|
});
|
|
11330
11432
|
deployCommand2.addCommand(runCommand);
|
|
11331
11433
|
deployCommand2.addCommand(artifactsCommand);
|
|
11332
11434
|
deployCommand2.addCommand(serverGroupsCommand);
|
|
11435
|
+
deployCommand2.addCommand(scenariosCommand);
|
|
11333
11436
|
deployCommand2.addCommand(historiesCommand);
|
|
11334
11437
|
deployCommand2.addCommand(binaryGroupsCommand);
|
|
11335
11438
|
deployCommand2.addCommand(binariesCommand);
|
|
11336
11439
|
deployCommand2.addCommand(uploadCommand);
|
|
11337
11440
|
deployCommand2.addCommand(downloadCommand);
|
|
11338
11441
|
program.addCommand(deployCommand2);
|
|
11339
|
-
var instanceCommand = new
|
|
11442
|
+
var instanceCommand = new import_commander60.Command("instance").description("Compute \uC778\uC2A4\uD134\uC2A4 \uAD00\uB828 \uBA85\uB839").addHelpText("after", instanceAgentWorkflow);
|
|
11340
11443
|
instanceCommand.addCommand(listCommand);
|
|
11341
11444
|
instanceCommand.addCommand(flavorsCommand);
|
|
11342
11445
|
instanceCommand.addCommand(availabilityZonesCommand);
|
|
@@ -11355,23 +11458,23 @@ instanceCommand.addCommand(keypairCommand);
|
|
|
11355
11458
|
instanceCommand.addCommand(volumeCommand);
|
|
11356
11459
|
instanceCommand.addCommand(volumesCommand);
|
|
11357
11460
|
program.addCommand(instanceCommand);
|
|
11358
|
-
var networkCommand = new
|
|
11461
|
+
var networkCommand = new import_commander60.Command("network").description("VPC\xB7\uC11C\uBE0C\uB137 \uC870\uD68C").addHelpText("after", networkAgentWorkflow);
|
|
11359
11462
|
networkCommand.addCommand(listCommand3);
|
|
11360
11463
|
networkCommand.addCommand(subnetCommand);
|
|
11361
11464
|
program.addCommand(networkCommand);
|
|
11362
|
-
var volumeCommand2 = new
|
|
11465
|
+
var volumeCommand2 = new import_commander60.Command("volume").description("Block Storage \uBCFC\uB968 \uAD00\uB828 \uBA85\uB839").addHelpText("after", volumeAgentWorkflow);
|
|
11363
11466
|
volumeCommand2.addCommand(listCommand2);
|
|
11364
11467
|
volumeCommand2.addCommand(getCommand);
|
|
11365
11468
|
volumeCommand2.addCommand(createCommand);
|
|
11366
11469
|
program.addCommand(volumeCommand2);
|
|
11367
|
-
var floatingipCommand = new
|
|
11470
|
+
var floatingipCommand = new import_commander60.Command("floatingip").description(
|
|
11368
11471
|
"Floating IP(\uC778\uC2A4\uD134\uC2A4 \uACF5\uC778 IP) \uAD00\uB9AC"
|
|
11369
11472
|
).addHelpText("after", floatingIpAgentWorkflow);
|
|
11370
11473
|
floatingipCommand.addCommand(listCommand4);
|
|
11371
11474
|
floatingipCommand.addCommand(createCommand2);
|
|
11372
11475
|
floatingipCommand.addCommand(deleteCommand);
|
|
11373
11476
|
program.addCommand(floatingipCommand);
|
|
11374
|
-
var loadbalancerCommand = new
|
|
11477
|
+
var loadbalancerCommand = new import_commander60.Command("loadbalancer").description("Load Balancer\xB7IP ACL \uC870\uD68C\xB7\uAD00\uB9AC").addHelpText("after", loadbalancerAgentWorkflow);
|
|
11375
11478
|
loadbalancerCommand.addCommand(listCommand14);
|
|
11376
11479
|
loadbalancerCommand.addCommand(getCommand9);
|
|
11377
11480
|
loadbalancerCommand.addCommand(ipaclCommand);
|
|
@@ -11379,25 +11482,25 @@ loadbalancerCommand.addCommand(setIpAclCommand2);
|
|
|
11379
11482
|
loadbalancerCommand.addCommand(clearIpAclCommand);
|
|
11380
11483
|
configureLoadBalancerHelp(loadbalancerCommand);
|
|
11381
11484
|
program.addCommand(loadbalancerCommand);
|
|
11382
|
-
var ncrCommand = new
|
|
11485
|
+
var ncrCommand = new import_commander60.Command("ncr").description("NHN Container Registry \uAD00\uB828 \uBA85\uB839").addHelpText("after", ncrAgentWorkflow);
|
|
11383
11486
|
ncrCommand.addCommand(listCommand5);
|
|
11384
11487
|
ncrCommand.addCommand(getCommand3);
|
|
11385
11488
|
ncrCommand.addCommand(imagesCommand2);
|
|
11386
11489
|
ncrCommand.addCommand(tagsCommand);
|
|
11387
11490
|
program.addCommand(ncrCommand);
|
|
11388
|
-
var nksCommand = new
|
|
11491
|
+
var nksCommand = new import_commander60.Command("nks").description("NHN Kubernetes Service \uAD00\uB828 \uBA85\uB839").addHelpText("after", nksAgentWorkflow);
|
|
11389
11492
|
nksCommand.addCommand(supportsCommand);
|
|
11390
11493
|
nksCommand.addCommand(clusterCommand);
|
|
11391
11494
|
nksCommand.addCommand(nodegroupCommand);
|
|
11392
11495
|
nksCommand.addCommand(addonTypeCommand);
|
|
11393
11496
|
nksCommand.addCommand(addonCommand);
|
|
11394
11497
|
program.addCommand(nksCommand);
|
|
11395
|
-
var ncsCommand = new
|
|
11498
|
+
var ncsCommand = new import_commander60.Command("ncs").description("NHN Container Service \uAD00\uB828 \uBA85\uB839").addHelpText("after", ncsAgentWorkflow);
|
|
11396
11499
|
ncsCommand.addCommand(templateCommand);
|
|
11397
11500
|
ncsCommand.addCommand(workloadCommand);
|
|
11398
11501
|
ncsCommand.addCommand(malwareCommand);
|
|
11399
11502
|
program.addCommand(ncsCommand);
|
|
11400
|
-
var apiGatewayCommand = new
|
|
11503
|
+
var apiGatewayCommand = new import_commander60.Command("apigateway").description("NHN API Gateway \uC870\uD68C \uBA85\uB839");
|
|
11401
11504
|
apiGatewayCommand.addCommand(serviceCommand);
|
|
11402
11505
|
apiGatewayCommand.addCommand(resourceCommand);
|
|
11403
11506
|
apiGatewayCommand.addCommand(stageCommand);
|
|
@@ -11407,7 +11510,7 @@ program.addCommand(doctorCommand);
|
|
|
11407
11510
|
program.addCommand(createCommandsCommand(program));
|
|
11408
11511
|
configureCommanderExitCodes(program);
|
|
11409
11512
|
program.parseAsync().catch((err) => {
|
|
11410
|
-
if (err instanceof
|
|
11513
|
+
if (err instanceof import_commander60.CommanderError) {
|
|
11411
11514
|
process.exit(err.exitCode);
|
|
11412
11515
|
}
|
|
11413
11516
|
const message = sanitizeMultilineForTerminal(
|