Skip to content

Commit

Permalink
use deprecated group
Browse files Browse the repository at this point in the history
  • Loading branch information
liamdebeasi committed Dec 12, 2023
1 parent ba98523 commit 2de1188
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 10 deletions.
5 changes: 3 additions & 2 deletions packages/@ionic/cli/src/commands/ssh/add.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { validators } from '@ionic/cli-framework';
import { validators, MetadataGroup } from '@ionic/cli-framework';
import { pathAccessible, pathExists } from '@ionic/utils-fs';
import { expandPath, prettyPath } from '@ionic/utils-terminal';
import * as fs from 'fs';
Expand All @@ -18,7 +18,7 @@ export class SSHAddCommand extends SSHBaseCommand implements CommandPreRun {
return {
name: 'add',
type: 'global',
summary: 'Add an SSH public key to Ionic (Deprecated)',
summary: 'Add an SSH public key to Ionic',
inputs: [
{
name: 'pubkey-path',
Expand All @@ -33,6 +33,7 @@ export class SSHAddCommand extends SSHBaseCommand implements CommandPreRun {
type: Boolean,
},
],
groups: [MetadataGroup.DEPRECATED],
};
}

Expand Down
5 changes: 3 additions & 2 deletions packages/@ionic/cli/src/commands/ssh/delete.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { validators } from '@ionic/cli-framework';
import { validators, MetadataGroup } from '@ionic/cli-framework';

import { CommandLineInputs, CommandLineOptions, CommandMetadata, CommandPreRun } from '../../definitions';
import { input, strong } from '../../lib/color';
Expand All @@ -10,14 +10,15 @@ export class SSHDeleteCommand extends SSHBaseCommand implements CommandPreRun {
return {
name: 'delete',
type: 'global',
summary: 'Delete an SSH public key from Ionic (Deprecated)',
summary: 'Delete an SSH public key from Ionic',
inputs: [
{
name: 'key-id',
summary: 'The ID of the public key to delete',
validators: [validators.required],
},
],
groups: [MetadataGroup.DEPRECATED],
};
}

Expand Down
3 changes: 2 additions & 1 deletion packages/@ionic/cli/src/commands/ssh/generate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export class SSHGenerateCommand extends SSHBaseCommand implements CommandPreRun
return {
name: 'generate',
type: 'global',
summary: 'Generates a private and public SSH key pair (Deprecated)',
summary: 'Generates a private and public SSH key pair',
inputs: [
{
name: 'key-path',
Expand Down Expand Up @@ -44,6 +44,7 @@ export class SSHGenerateCommand extends SSHBaseCommand implements CommandPreRun
groups: [MetadataGroup.ADVANCED],
},
],
groups: [MetadataGroup.DEPRECATED],
};
}

Expand Down
4 changes: 3 additions & 1 deletion packages/@ionic/cli/src/commands/ssh/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { MetadataGroup } from '@ionic/cli-framework';
import { input } from '../../lib/color';
import { CommandMap, Namespace } from '../../lib/namespace';

Expand All @@ -7,7 +8,7 @@ export class SSHNamespace extends Namespace {

return {
name: 'ssh',
summary: 'Commands for configuring SSH keys (Deprecated)',
summary: 'Commands for configuring SSH keys',
description: `
These commands help automate your SSH configuration for Ionic. As an alternative, SSH configuration can be done entirely manually by visiting your Personal Settings[^dashboard-settings-ssh-keys].
Expand All @@ -21,6 +22,7 @@ Deprecated. Developers should configure SSH by visting their Personal Settings a
url: `${dashUrl}/settings/ssh-keys`,
},
],
groups: [MetadataGroup.DEPRECATED],
};
}

Expand Down
4 changes: 3 additions & 1 deletion packages/@ionic/cli/src/commands/ssh/list.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { MetadataGroup } from '@ionic/cli-framework';
import { columnar } from '@ionic/utils-terminal';

import { COLUMNAR_OPTIONS } from '../../constants';
Expand All @@ -11,14 +12,15 @@ export class SSHListCommand extends SSHBaseCommand implements CommandPreRun {
return {
name: 'list',
type: 'global',
summary: 'List your SSH public keys on Ionic (Deprecated)',
summary: 'List your SSH public keys on Ionic',
options: [
{
name: 'json',
summary: 'Output SSH keys in JSON',
type: Boolean,
},
],
groups: [MetadataGroup.DEPRECATED],
};
}

Expand Down
4 changes: 3 additions & 1 deletion packages/@ionic/cli/src/commands/ssh/setup.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { MetadataGroup } from '@ionic/cli-framework';
import { pathExists } from '@ionic/utils-fs';
import { prettyPath } from '@ionic/utils-terminal';

Expand All @@ -15,7 +16,7 @@ export class SSHSetupCommand extends SSHBaseCommand {
return {
name: 'setup',
type: 'global',
summary: 'Setup your Ionic SSH keys automatically (Deprecated)',
summary: 'Setup your Ionic SSH keys automatically',
description: `
This command offers a setup wizard for Ionic SSH keys using a series of prompts. For more control, see the commands available for managing SSH keys with the ${input('ionic ssh --help')} command. For an entirely manual approach, see ${strong('Personal Settings')} => ${strong('SSH Keys')} in the Dashboard[^dashboard-settings-ssh-keys].
Expand All @@ -31,6 +32,7 @@ If you are having issues setting up SSH keys, please get in touch with our Suppo
url: 'https://ion.link/support-request',
},
],
groups: [MetadataGroup.DEPRECATED],
};
}

Expand Down
5 changes: 3 additions & 2 deletions packages/@ionic/cli/src/commands/ssh/use.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { validators } from '@ionic/cli-framework';
import { validators, MetadataGroup } from '@ionic/cli-framework';
import { fileToString, writeFile } from '@ionic/utils-fs';
import { expandPath, prettyPath } from '@ionic/utils-terminal';

Expand All @@ -13,7 +13,7 @@ export class SSHUseCommand extends SSHBaseCommand {
return {
name: 'use',
type: 'global',
summary: 'Set your active Ionic SSH key (Deprecated)',
summary: 'Set your active Ionic SSH key',
description: `
This command modifies the SSH configuration file (${strong('~/.ssh/config')}) to set an active private key for the ${strong('git.ionicjs.com')} host. Read more about SSH configuration by running the ${input('man ssh_config')} command or by visiting online man pages[^ssh-config-docs].
Expand All @@ -32,6 +32,7 @@ Before making changes, ${input('ionic ssh use')} will print a diff and ask for p
validators: [validators.required],
},
],
groups: [MetadataGroup.DEPRECATED],
};
}

Expand Down

0 comments on commit 2de1188

Please sign in to comment.