Skip to content

Commit ed23150

Browse files
authored
chore: deprecate ssh commands (#5069)
1 parent d09653d commit ed23150

File tree

7 files changed

+15
-3
lines changed

7 files changed

+15
-3
lines changed

packages/@ionic/cli/src/commands/ssh/add.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { validators } from '@ionic/cli-framework';
1+
import { validators, MetadataGroup } from '@ionic/cli-framework';
22
import { pathAccessible, pathExists } from '@ionic/utils-fs';
33
import { expandPath, prettyPath } from '@ionic/utils-terminal';
44
import * as fs from 'fs';
@@ -33,6 +33,7 @@ export class SSHAddCommand extends SSHBaseCommand implements CommandPreRun {
3333
type: Boolean,
3434
},
3535
],
36+
groups: [MetadataGroup.DEPRECATED],
3637
};
3738
}
3839

packages/@ionic/cli/src/commands/ssh/delete.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { validators } from '@ionic/cli-framework';
1+
import { validators, MetadataGroup } from '@ionic/cli-framework';
22

33
import { CommandLineInputs, CommandLineOptions, CommandMetadata, CommandPreRun } from '../../definitions';
44
import { input, strong } from '../../lib/color';
@@ -18,6 +18,7 @@ export class SSHDeleteCommand extends SSHBaseCommand implements CommandPreRun {
1818
validators: [validators.required],
1919
},
2020
],
21+
groups: [MetadataGroup.DEPRECATED],
2122
};
2223
}
2324

packages/@ionic/cli/src/commands/ssh/generate.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ export class SSHGenerateCommand extends SSHBaseCommand implements CommandPreRun
4444
groups: [MetadataGroup.ADVANCED],
4545
},
4646
],
47+
groups: [MetadataGroup.DEPRECATED],
4748
};
4849
}
4950

packages/@ionic/cli/src/commands/ssh/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { MetadataGroup } from '@ionic/cli-framework';
12
import { input } from '../../lib/color';
23
import { CommandMap, Namespace } from '../../lib/namespace';
34

@@ -12,13 +13,16 @@ export class SSHNamespace extends Namespace {
1213
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].
1314
1415
To begin, run ${input('ionic ssh setup')}, which lets you use existing keys or generate new ones just for Ionic.
16+
17+
Deprecated. Developers should configure SSH by visiting their Personal Settings at https://dashboard.ionicframework.com/settings/ssh-keys.
1518
`,
1619
footnotes: [
1720
{
1821
id: 'dashboard-settings-ssh-keys',
1922
url: `${dashUrl}/settings/ssh-keys`,
2023
},
2124
],
25+
groups: [MetadataGroup.DEPRECATED],
2226
};
2327
}
2428

packages/@ionic/cli/src/commands/ssh/list.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { MetadataGroup } from '@ionic/cli-framework';
12
import { columnar } from '@ionic/utils-terminal';
23

34
import { COLUMNAR_OPTIONS } from '../../constants';
@@ -19,6 +20,7 @@ export class SSHListCommand extends SSHBaseCommand implements CommandPreRun {
1920
type: Boolean,
2021
},
2122
],
23+
groups: [MetadataGroup.DEPRECATED],
2224
};
2325
}
2426

packages/@ionic/cli/src/commands/ssh/setup.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { MetadataGroup } from '@ionic/cli-framework';
12
import { pathExists } from '@ionic/utils-fs';
23
import { prettyPath } from '@ionic/utils-terminal';
34

@@ -31,6 +32,7 @@ If you are having issues setting up SSH keys, please get in touch with our Suppo
3132
url: 'https://ion.link/support-request',
3233
},
3334
],
35+
groups: [MetadataGroup.DEPRECATED],
3436
};
3537
}
3638

packages/@ionic/cli/src/commands/ssh/use.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { validators } from '@ionic/cli-framework';
1+
import { validators, MetadataGroup } from '@ionic/cli-framework';
22
import { fileToString, writeFile } from '@ionic/utils-fs';
33
import { expandPath, prettyPath } from '@ionic/utils-terminal';
44

@@ -32,6 +32,7 @@ Before making changes, ${input('ionic ssh use')} will print a diff and ask for p
3232
validators: [validators.required],
3333
},
3434
],
35+
groups: [MetadataGroup.DEPRECATED],
3536
};
3637
}
3738

0 commit comments

Comments
 (0)