hotcodepush 0.1.0 → 0.2.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/commands/app/create.js +1 -1
- package/dist/commands/app/delete.js +2 -2
- package/dist/commands/app/get.js +1 -1
- package/dist/commands/app/list.js +1 -1
- package/dist/commands/app/transfer.js +1 -1
- package/dist/commands/app/update.js +1 -1
- package/dist/commands/audience/get.js +2 -2
- package/dist/commands/audit-log/list.js +2 -2
- package/dist/commands/binary/create.js +11 -9
- package/dist/commands/binary/get.js +1 -1
- package/dist/commands/binary/list.js +2 -2
- package/dist/commands/bundle/delete.js +2 -2
- package/dist/commands/bundle/get.js +1 -1
- package/dist/commands/bundle/list.js +2 -2
- package/dist/commands/bundle/upload.js +7 -6
- package/dist/commands/channel/create.js +1 -1
- package/dist/commands/channel/delete.js +3 -3
- package/dist/commands/channel/get.js +1 -1
- package/dist/commands/channel/list.js +1 -1
- package/dist/commands/channel/pause.js +1 -1
- package/dist/commands/channel/resume.js +1 -1
- package/dist/commands/channel/update.js +1 -1
- package/dist/commands/checkout/create.js +1 -1
- package/dist/commands/completion.js +2 -1
- package/dist/commands/customer-portal-session/create.js +1 -1
- package/dist/commands/device/delete.js +2 -2
- package/dist/commands/device/get.js +1 -1
- package/dist/commands/device/list.js +3 -3
- package/dist/commands/device/probe.js +3 -3
- package/dist/commands/doctor.js +2 -1
- package/dist/commands/fingerprint/diff.js +3 -2
- package/dist/commands/fingerprint.js +3 -2
- package/dist/commands/init.js +4 -3
- package/dist/commands/invitation/accept.js +1 -1
- package/dist/commands/invitation/create.js +2 -2
- package/dist/commands/invitation/delete.js +2 -2
- package/dist/commands/invitation/list.js +1 -1
- package/dist/commands/limit/list.js +1 -1
- package/dist/commands/login.js +4 -153
- package/dist/commands/logout.js +7 -5
- package/dist/commands/member/delete.js +2 -2
- package/dist/commands/member/get.js +1 -1
- package/dist/commands/member/list.js +1 -1
- package/dist/commands/member/update.js +2 -2
- package/dist/commands/open.js +1 -1
- package/dist/commands/organization/create.js +1 -1
- package/dist/commands/organization/delete.js +2 -2
- package/dist/commands/organization/get.js +1 -1
- package/dist/commands/organization/list.js +1 -1
- package/dist/commands/organization/update.js +1 -1
- package/dist/commands/release/create.js +5 -5
- package/dist/commands/release/get.js +1 -1
- package/dist/commands/release/list.js +1 -1
- package/dist/commands/release/pause.js +1 -1
- package/dist/commands/release/resume.js +1 -1
- package/dist/commands/release/revoke.js +5 -4
- package/dist/commands/release/rollback.js +3 -3
- package/dist/commands/release/rollout.js +4 -4
- package/dist/commands/release/update.js +2 -2
- package/dist/commands/resource-file/write.js +8 -6
- package/dist/commands/signing-key/add.js +2 -2
- package/dist/commands/signing-key/create.js +2 -2
- package/dist/commands/signing-key/delete.js +1 -1
- package/dist/commands/signing-key/list.js +2 -2
- package/dist/commands/sso-provider/delete.js +1 -1
- package/dist/commands/sso-provider/get.js +1 -1
- package/dist/commands/sso-provider/set.js +2 -2
- package/dist/commands/sso-provider/verify.js +2 -2
- package/dist/commands/statistics/get.js +5 -5
- package/dist/commands/usage/get.js +1 -1
- package/dist/commands/usage/list.js +1 -1
- package/dist/commands/webhook/create.js +3 -3
- package/dist/commands/webhook/delete.js +1 -1
- package/dist/commands/webhook/get.js +2 -2
- package/dist/commands/webhook/list.js +1 -1
- package/dist/commands/webhook/test.js +1 -1
- package/dist/commands/webhook/update.js +3 -3
- package/dist/commands/webhook-delivery/list.js +2 -2
- package/dist/commands/webhook-delivery/redeliver.js +2 -2
- package/dist/commands/whoami.js +1 -1
- package/dist/completion/hotcodepush.fish +75 -75
- package/dist/completion/hotcodepush.zsh +75 -75
- package/dist/utils/audience.js +1 -1
- package/dist/utils/authentication.js +60 -0
- package/dist/utils/build-step.js +1 -1
- package/dist/utils/channel-fields.js +3 -3
- package/dist/utils/cli.js +5 -0
- package/dist/utils/command.js +4 -0
- package/dist/utils/diagnostics.js +20 -0
- package/dist/utils/error-mapping.js +10 -14
- package/dist/utils/login.js +153 -0
- package/dist/utils/output.js +2 -1
- package/dist/utils/release-conditions.js +3 -4
- package/dist/utils/release-output.js +1 -1
- package/dist/utils/resource-resolution.js +1 -1
- package/dist/utils/telemetry.js +3 -2
- package/dist/utils/update-notice.js +2 -1
- package/dist/utils/usage-month.js +1 -1
- package/dist/utils/user-config.js +8 -0
- package/dist/utils/webhook-resolution.js +1 -1
- package/package.json +3 -3
|
@@ -2,16 +2,16 @@ import { existsSync, rmSync, statSync } from 'node:fs';
|
|
|
2
2
|
import { dirname, resolve } from 'node:path';
|
|
3
3
|
import { generateSigningKeyPair } from '@hotcodepush/protocol';
|
|
4
4
|
import { z } from 'zod';
|
|
5
|
-
import { defineCommand } from 'zodline';
|
|
6
5
|
import { PROJECT_CONFIG_FILE_NAME, SIGNING_PRIVATE_KEY_FILE_NAME, } from '../../config/consts.js';
|
|
7
6
|
import { createApiClient } from '../../utils/api-client.js';
|
|
7
|
+
import { defineCommand } from '../../utils/command.js';
|
|
8
8
|
import { InvalidParameterError } from '../../utils/errors.js';
|
|
9
9
|
import { defineCommandOptions } from '../../utils/global-options.js';
|
|
10
10
|
import { printJson } from '../../utils/output.js';
|
|
11
11
|
import { locateProjectConfig, writeProjectConfig, } from '../../utils/project-config.js';
|
|
12
12
|
import { fetchAppId } from '../../utils/resource-resolution.js';
|
|
13
13
|
import { writeSigningPrivateKeyFile } from '../../utils/signing-private-key.js';
|
|
14
|
-
export const UPLOAD_SIGNING_TEXT = "Uploads sign with it through --private-key-path
|
|
14
|
+
export const UPLOAD_SIGNING_TEXT = "Uploads sign with it through --private-key-path. In CI, set HOTCODEPUSH_SIGNING_KEY to the file's content.";
|
|
15
15
|
export default defineCommand({
|
|
16
16
|
description: 'Generate a key pair and add its public key to the app, the private key written to a new file on this machine: from then on the app releases only signed bundles.',
|
|
17
17
|
examples: [
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { defineCommand } from 'zodline';
|
|
3
2
|
import { createApiClient } from '../../utils/api-client.js';
|
|
3
|
+
import { defineCommand } from '../../utils/command.js';
|
|
4
4
|
import { InvalidParameterError } from '../../utils/errors.js';
|
|
5
5
|
import { defineCommandOptions } from '../../utils/global-options.js';
|
|
6
6
|
import { printJson } from '../../utils/output.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineCommand } from 'zodline';
|
|
2
1
|
import { createApiClient } from '../../utils/api-client.js';
|
|
2
|
+
import { defineCommand } from '../../utils/command.js';
|
|
3
3
|
import { defineCommandOptions } from '../../utils/global-options.js';
|
|
4
4
|
import { printJson, printTable, resolveDate } from '../../utils/output.js';
|
|
5
5
|
import { paginationShape, resolveNextOffset } from '../../utils/pagination.js';
|
|
@@ -25,7 +25,7 @@ export default defineCommand({
|
|
|
25
25
|
return;
|
|
26
26
|
}
|
|
27
27
|
printTable({
|
|
28
|
-
emptyText: 'No signing keys
|
|
28
|
+
emptyText: 'No signing keys. Run signing-key create to enable code signing.',
|
|
29
29
|
headers: ['ID', 'KEY ID', 'CREATED'],
|
|
30
30
|
nextOffset,
|
|
31
31
|
rows: listedSigningKeys.map(({ createdAt, id, keyId }) => [
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineCommand } from 'zodline';
|
|
2
1
|
import { createApiClient } from '../../utils/api-client.js';
|
|
2
|
+
import { defineCommand } from '../../utils/command.js';
|
|
3
3
|
import { defineCommandOptions } from '../../utils/global-options.js';
|
|
4
4
|
import { printJson } from '../../utils/output.js';
|
|
5
5
|
import { confirmConsequence } from '../../utils/prompts.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineCommand } from 'zodline';
|
|
2
1
|
import { createApiClient } from '../../utils/api-client.js';
|
|
2
|
+
import { defineCommand } from '../../utils/command.js';
|
|
3
3
|
import { defineCommandOptions } from '../../utils/global-options.js';
|
|
4
4
|
import { resolveConsoleBaseUrl } from '../../utils/hosts.js';
|
|
5
5
|
import { printDetails, printJson } from '../../utils/output.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { readFileSync } from 'node:fs';
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
-
import { defineCommand } from 'zodline';
|
|
4
3
|
import { createApiClient } from '../../utils/api-client.js';
|
|
4
|
+
import { defineCommand } from '../../utils/command.js';
|
|
5
5
|
import { InvalidParameterError } from '../../utils/errors.js';
|
|
6
6
|
import { defineCommandOptions } from '../../utils/global-options.js';
|
|
7
7
|
import { printJson } from '../../utils/output.js';
|
|
@@ -11,7 +11,7 @@ import { printProviderDetails } from './get.js';
|
|
|
11
11
|
// A missing protocol names the first flag of each protocol.
|
|
12
12
|
const PROVIDER_TYPE_FLAG = '--oidc-issuer or --saml-entry-point';
|
|
13
13
|
export default defineCommand({
|
|
14
|
-
description: "Set the organization's OIDC or SAML provider and its email domain, replacing the one before
|
|
14
|
+
description: "Set the organization's OIDC or SAML provider and its email domain, replacing the one before. A new domain starts unverified.",
|
|
15
15
|
examples: [
|
|
16
16
|
'hotcodepush sso-provider set --domain example.com --oidc-issuer https://login.example.com --oidc-client-id hotcodepush --oidc-client-secret "$OIDC_CLIENT_SECRET"',
|
|
17
17
|
'hotcodepush sso-provider set --domain example.com --saml-entry-point https://idp.example.com/sso --saml-issuer https://idp.example.com --saml-metadata-path idp-metadata.xml --json',
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineCommand } from 'zodline';
|
|
2
1
|
import { createApiClient } from '../../utils/api-client.js';
|
|
2
|
+
import { defineCommand } from '../../utils/command.js';
|
|
3
3
|
import { defineCommandOptions } from '../../utils/global-options.js';
|
|
4
4
|
import { printJson } from '../../utils/output.js';
|
|
5
5
|
import { fetchOrganizationId } from '../../utils/resource-resolution.js';
|
|
@@ -27,5 +27,5 @@ export default defineCommand({
|
|
|
27
27
|
function resolveVerificationText({ domain, domainVerified, }) {
|
|
28
28
|
return domainVerified
|
|
29
29
|
? `Verified ${domain}.`
|
|
30
|
-
: `No TXT record verifies ${domain} yet
|
|
30
|
+
: `No TXT record verifies ${domain} yet. A new record can take a while to appear.`;
|
|
31
31
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { defineCommand } from 'zodline';
|
|
3
2
|
import { createApiClient } from '../../utils/api-client.js';
|
|
3
|
+
import { defineCommand } from '../../utils/command.js';
|
|
4
4
|
import { InvalidParameterError } from '../../utils/errors.js';
|
|
5
5
|
import { defineCommandOptions } from '../../utils/global-options.js';
|
|
6
6
|
import { printDetails, printJson, printTable } from '../../utils/output.js';
|
|
@@ -18,7 +18,7 @@ const FLEET_DIMENSIONS = [
|
|
|
18
18
|
['COUNTRY', 'country'],
|
|
19
19
|
];
|
|
20
20
|
export default defineCommand({
|
|
21
|
-
description: "Print one of the app's statistics: the fleet
|
|
21
|
+
description: "Print one of the app's statistics: the fleet of devices seen in 30 days, the updates per day, or the usage the bill counts.",
|
|
22
22
|
examples: [
|
|
23
23
|
'hotcodepush statistics get --type fleet --channel production',
|
|
24
24
|
'hotcodepush statistics get --type updates --period-since 2026-09-01 --period-until 2026-09-30 --json',
|
|
@@ -27,7 +27,7 @@ export default defineCommand({
|
|
|
27
27
|
channel: z
|
|
28
28
|
.string()
|
|
29
29
|
.optional()
|
|
30
|
-
.describe('The channel, by id or name, to narrow the fleet or the updates to
|
|
30
|
+
.describe('The channel, by id or name, to narrow the fleet or the updates to. Defaults to the whole app.'),
|
|
31
31
|
periodSince: z
|
|
32
32
|
.string()
|
|
33
33
|
.optional()
|
|
@@ -35,11 +35,11 @@ export default defineCommand({
|
|
|
35
35
|
periodUntil: z
|
|
36
36
|
.string()
|
|
37
37
|
.optional()
|
|
38
|
-
.describe('The last UTC day of the updates or the usage, YYYY-MM-DD, inclusive
|
|
38
|
+
.describe('The last UTC day of the updates or the usage, YYYY-MM-DD, inclusive. Defaults to today.'),
|
|
39
39
|
type: z
|
|
40
40
|
.enum(STATISTICS_TYPES)
|
|
41
41
|
.optional()
|
|
42
|
-
.describe('The statistics to print
|
|
42
|
+
.describe('The statistics to print. fleet is the devices seen in 30 days, updates is the updates per day, and usage is the monthly active devices and the traffic.'),
|
|
43
43
|
}),
|
|
44
44
|
action: async (options) => {
|
|
45
45
|
const hotCodePush = createApiClient();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineCommand } from 'zodline';
|
|
2
1
|
import { createApiClient } from '../../utils/api-client.js';
|
|
2
|
+
import { defineCommand } from '../../utils/command.js';
|
|
3
3
|
import { defineCommandOptions } from '../../utils/global-options.js';
|
|
4
4
|
import { printDetails, printJson } from '../../utils/output.js';
|
|
5
5
|
import { resolveByteText } from '../../utils/progress.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineCommand } from 'zodline';
|
|
2
1
|
import { createApiClient } from '../../utils/api-client.js';
|
|
2
|
+
import { defineCommand } from '../../utils/command.js';
|
|
3
3
|
import { defineCommandOptions } from '../../utils/global-options.js';
|
|
4
4
|
import { printJson, printTable } from '../../utils/output.js';
|
|
5
5
|
import { paginationShape, resolveNextOffset } from '../../utils/pagination.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { defineCommand } from 'zodline';
|
|
3
2
|
import { createApiClient } from '../../utils/api-client.js';
|
|
3
|
+
import { defineCommand } from '../../utils/command.js';
|
|
4
4
|
import { defineCommandOptions } from '../../utils/global-options.js';
|
|
5
5
|
import { printJson } from '../../utils/output.js';
|
|
6
6
|
import { promptSelect, promptText } from '../../utils/prompts.js';
|
|
@@ -8,7 +8,7 @@ import { fetchOrganizationId } from '../../utils/resource-resolution.js';
|
|
|
8
8
|
import { fetchWebhookAppId, resolveWebhookEventTypes, webhookAppOptionShape, webhookEventOptionShape, } from '../../utils/webhook-resolution.js';
|
|
9
9
|
const WEBHOOK_FORMATS = ['raw', 'slack', 'discord', 'teams'];
|
|
10
10
|
export default defineCommand({
|
|
11
|
-
description: "Create a webhook that posts the organization's events to a URL, as signed JSON or as a Slack, Discord or Teams message
|
|
11
|
+
description: "Create a webhook that posts the organization's events to a URL, as signed JSON or as a Slack, Discord or Teams message. A raw webhook's secret is printed this once.",
|
|
12
12
|
examples: [
|
|
13
13
|
'hotcodepush webhook create --name releases --url https://example.com/hooks/hotcodepush --format raw --event release.created --event release.paused',
|
|
14
14
|
'hotcodepush webhook create --name team-chat --url https://chat.example.com/incoming/team --format slack --event release.failure_rate_exceeded --app "My App" --json',
|
|
@@ -65,7 +65,7 @@ function printCreatedWebhook(webhook) {
|
|
|
65
65
|
return;
|
|
66
66
|
}
|
|
67
67
|
console.log(`Secret: ${webhook.secret}`);
|
|
68
|
-
console.log('Store the secret now to verify the signature of every delivery
|
|
68
|
+
console.log('Store the secret now to verify the signature of every delivery. It is never shown again.');
|
|
69
69
|
}
|
|
70
70
|
function promptFormat(options) {
|
|
71
71
|
return promptSelect('--format', 'Which format?', WEBHOOK_FORMATS.map(format => ({ label: format, value: format })), options);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineCommand } from 'zodline';
|
|
2
1
|
import { createApiClient } from '../../utils/api-client.js';
|
|
2
|
+
import { defineCommand } from '../../utils/command.js';
|
|
3
3
|
import { defineCommandOptions } from '../../utils/global-options.js';
|
|
4
4
|
import { printJson } from '../../utils/output.js';
|
|
5
5
|
import { confirmConsequence } from '../../utils/prompts.js';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineCommand } from 'zodline';
|
|
2
1
|
import { createApiClient } from '../../utils/api-client.js';
|
|
2
|
+
import { defineCommand } from '../../utils/command.js';
|
|
3
3
|
import { defineCommandOptions } from '../../utils/global-options.js';
|
|
4
4
|
import { printDetails, printJson } from '../../utils/output.js';
|
|
5
5
|
import { fetchWebhook, webhookOptionShape, } from '../../utils/webhook-resolution.js';
|
|
6
6
|
export default defineCommand({
|
|
7
|
-
description: 'Print a webhook: its URL, format, events, app filter and whether it is enabled
|
|
7
|
+
description: 'Print a webhook: its URL, format, events, app filter and whether it is enabled. The secret is never printed.',
|
|
8
8
|
examples: [
|
|
9
9
|
'hotcodepush webhook get --webhook releases',
|
|
10
10
|
'hotcodepush webhook get --webhook 3c9e7a52-8d14-4b6f-a0e2-5f71c3d8b946 --json',
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineCommand } from 'zodline';
|
|
2
1
|
import { createApiClient } from '../../utils/api-client.js';
|
|
2
|
+
import { defineCommand } from '../../utils/command.js';
|
|
3
3
|
import { defineCommandOptions } from '../../utils/global-options.js';
|
|
4
4
|
import { printJson, printTable, resolveDate } from '../../utils/output.js';
|
|
5
5
|
import { paginationShape, resolveNextOffset } from '../../utils/pagination.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineCommand } from 'zodline';
|
|
2
1
|
import { createApiClient } from '../../utils/api-client.js';
|
|
2
|
+
import { defineCommand } from '../../utils/command.js';
|
|
3
3
|
import { defineCommandOptions } from '../../utils/global-options.js';
|
|
4
4
|
import { printJson } from '../../utils/output.js';
|
|
5
5
|
import { confirmConsequence } from '../../utils/prompts.js';
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { defineCommand } from 'zodline';
|
|
3
2
|
import { createApiClient } from '../../utils/api-client.js';
|
|
4
3
|
import { booleanFlagSchema } from '../../utils/boolean-flag.js';
|
|
4
|
+
import { defineCommand } from '../../utils/command.js';
|
|
5
5
|
import { defineCommandOptions } from '../../utils/global-options.js';
|
|
6
6
|
import { resolveNullableField } from '../../utils/nullable-field.js';
|
|
7
7
|
import { printJson } from '../../utils/output.js';
|
|
8
8
|
import { fetchWebhook, fetchWebhookAppId, resolveWebhookEventTypes, webhookAppOptionShape, webhookEventOptionShape, webhookOptionShape, } from '../../utils/webhook-resolution.js';
|
|
9
9
|
export default defineCommand({
|
|
10
|
-
description: 'Rename a webhook or change its URL, events, app filter or whether it is enabled
|
|
10
|
+
description: 'Rename a webhook or change its URL, events, app filter or whether it is enabled. The format and the secret never change.',
|
|
11
11
|
examples: [
|
|
12
12
|
'hotcodepush webhook update --webhook releases --event release.created --event release.revoked',
|
|
13
13
|
'hotcodepush webhook update --webhook team-chat --enabled --clear-app --json',
|
|
@@ -22,7 +22,7 @@ export default defineCommand({
|
|
|
22
22
|
.describe("Sets the app filter back to null: the webhook receives every app's events and the organization's."),
|
|
23
23
|
enabled: booleanFlagSchema
|
|
24
24
|
.optional()
|
|
25
|
-
.describe('Whether the webhook delivers
|
|
25
|
+
.describe('Whether the webhook delivers. Turning it on again restarts the count of failures that disables it. Pass false to turn it off.'),
|
|
26
26
|
name: z.string().optional().describe("The webhook's new name."),
|
|
27
27
|
url: z
|
|
28
28
|
.string()
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { defineCommand } from 'zodline';
|
|
3
2
|
import { createApiClient } from '../../utils/api-client.js';
|
|
3
|
+
import { defineCommand } from '../../utils/command.js';
|
|
4
4
|
import { resolveTimeBound } from '../../utils/duration.js';
|
|
5
5
|
import { defineCommandOptions } from '../../utils/global-options.js';
|
|
6
6
|
import { printJson, printTable } from '../../utils/output.js';
|
|
@@ -8,7 +8,7 @@ import { paginationShape, resolveNextOffset } from '../../utils/pagination.js';
|
|
|
8
8
|
import { fetchWebhook, webhookOptionShape, } from '../../utils/webhook-resolution.js';
|
|
9
9
|
import { resolveResponseText } from './redeliver.js';
|
|
10
10
|
export default defineCommand({
|
|
11
|
-
description: "List a webhook's deliveries, newest first, filtered by status and time, to find the ones worth redelivering
|
|
11
|
+
description: "List a webhook's deliveries, newest first, filtered by status and time, to find the ones worth redelivering. Each is kept for 30 days.",
|
|
12
12
|
examples: [
|
|
13
13
|
'hotcodepush webhook-delivery list --webhook releases --status failed --created-since 2h',
|
|
14
14
|
'hotcodepush webhook-delivery list --webhook releases --json',
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { defineCommand } from 'zodline';
|
|
3
2
|
import { createApiClient } from '../../utils/api-client.js';
|
|
3
|
+
import { defineCommand } from '../../utils/command.js';
|
|
4
4
|
import { defineCommandOptions } from '../../utils/global-options.js';
|
|
5
5
|
import { printJson } from '../../utils/output.js';
|
|
6
6
|
import { confirmConsequence, promptText } from '../../utils/prompts.js';
|
|
7
7
|
import { fetchWebhook, webhookOptionShape, } from '../../utils/webhook-resolution.js';
|
|
8
8
|
export default defineCommand({
|
|
9
|
-
description: "Deliver a webhook's event again, once, and print the receiver's answer
|
|
9
|
+
description: "Deliver a webhook's event again, once, and print the receiver's answer. A pending delivery is taken from the retries.",
|
|
10
10
|
examples: [
|
|
11
11
|
'hotcodepush webhook-delivery redeliver --webhook releases --delivery 9a4f2e71-3b8c-4d65-b1e7-0c2d5f8a6e93',
|
|
12
12
|
'hotcodepush webhook-delivery redeliver --webhook releases --delivery 9a4f2e71-3b8c-4d65-b1e7-0c2d5f8a6e93 --yes --json',
|
package/dist/commands/whoami.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineCommand } from 'zodline';
|
|
2
1
|
import { DEFAULT_API_URL } from '../config/consts.js';
|
|
2
|
+
import { defineCommand } from '../utils/command.js';
|
|
3
3
|
import { fetchCurrentUser, resolveCredentialText, } from '../utils/credential.js';
|
|
4
4
|
import { defineCommandOptions } from '../utils/global-options.js';
|
|
5
5
|
import { printJson } from '../utils/output.js';
|