Skip to content

Commit

Permalink
chore: deprecate ssh commands (#5069)
Browse files Browse the repository at this point in the history
  • Loading branch information
liamdebeasi authored Dec 12, 2023
1 parent d09653d commit ed23150
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 3 deletions.
3 changes: 2 additions & 1 deletion 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 Down Expand Up @@ -33,6 +33,7 @@ export class SSHAddCommand extends SSHBaseCommand implements CommandPreRun {
type: Boolean,
},
],
groups: [MetadataGroup.DEPRECATED],
};
}

Expand Down
3 changes: 2 additions & 1 deletion 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 @@ -18,6 +18,7 @@ export class SSHDeleteCommand extends SSHBaseCommand implements CommandPreRun {
validators: [validators.required],
},
],
groups: [MetadataGroup.DEPRECATED],
};
}

Expand Down
1 change: 1 addition & 0 deletions packages/@ionic/cli/src/commands/ssh/generate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ export class SSHGenerateCommand extends SSHBaseCommand implements CommandPreRun
groups: [MetadataGroup.ADVANCED],
},
],
groups: [MetadataGroup.DEPRECATED],
};
}

Expand Down
4 changes: 4 additions & 0 deletions 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 @@ -12,13 +13,16 @@ export class SSHNamespace extends Namespace {
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].
To begin, run ${input('ionic ssh setup')}, which lets you use existing keys or generate new ones just for Ionic.
Deprecated. Developers should configure SSH by visiting their Personal Settings at https://dashboard.ionicframework.com/settings/ssh-keys.
`,
footnotes: [
{
id: 'dashboard-settings-ssh-keys',
url: `${dashUrl}/settings/ssh-keys`,
},
],
groups: [MetadataGroup.DEPRECATED],
};
}

Expand Down
2 changes: 2 additions & 0 deletions 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 @@ -19,6 +20,7 @@ export class SSHListCommand extends SSHBaseCommand implements CommandPreRun {
type: Boolean,
},
],
groups: [MetadataGroup.DEPRECATED],
};
}

Expand Down
2 changes: 2 additions & 0 deletions 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 Down Expand Up @@ -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
3 changes: 2 additions & 1 deletion 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 Down Expand Up @@ -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 ed23150

Please sign in to comment.