Skip to content

Commit 80a0f31

Browse files
committed
fix: renamed ssh-add-key resource to ssh-add
1 parent 1615a7c commit 80a0f31

4 files changed

Lines changed: 9 additions & 9 deletions

File tree

src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import { PgcliResource } from './resources/pgcli/pgcli.js';
1818
import { PyenvResource } from './resources/python/pyenv/pyenv.js';
1919
import { AliasResource } from './resources/shell/alias/alias-resource.js';
2020
import { PathResource } from './resources/shell/path/path-resource.js';
21-
import { SshAddKeyResource } from './resources/ssh/ssh-add-key.js';
21+
import { SshAddResource } from './resources/ssh/ssh-add.js';
2222
import { SshConfigFileResource } from './resources/ssh/ssh-config.js';
2323
import { SshKeyResource } from './resources/ssh/ssh-key.js';
2424
import { TerraformResource } from './resources/terraform/terraform.js';
@@ -51,6 +51,6 @@ runPlugin(Plugin.create(
5151
new AsdfInstallResource(),
5252
new SshKeyResource(),
5353
new SshConfigFileResource(),
54-
new SshAddKeyResource()
54+
new SshAddResource()
5555
])
5656
)
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
22
"$schema": "http://json-schema.org/draft-07/schema",
3-
"$id": "https://www.codifycli.com/ssh-key.json",
4-
"title": "Ssh key resource",
3+
"$id": "https://www.codifycli.com/ssh-add.json",
4+
"title": "Ssh add resource",
55
"type": "object",
66
"properties": {
77
"path": {
88
"type": "string",
9-
"description": "The path to the ssh-key to add"
9+
"description": "The path to the ssh key to add"
1010
},
1111
"appleUseKeychain": {
1212
"type": "boolean",
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import path from 'node:path';
44

55
import { SpawnStatus, codifySpawn } from '../../utils/codify-spawn.js';
66
import { FileUtils } from '../../utils/file-utils.js';
7-
import Schema from './ssh-add-key-schema.json'
7+
import Schema from './ssh-add-schema.json'
88

99
export interface SshAddConfig extends StringIndexedObject {
1010
path: string;
@@ -13,10 +13,10 @@ export interface SshAddConfig extends StringIndexedObject {
1313

1414
const APPLE_KEYCHAIN_REGEX = /Identity added: (.*) \((.*)\)/;
1515

16-
export class SshAddKeyResource extends Resource<SshAddConfig> {
16+
export class SshAddResource extends Resource<SshAddConfig> {
1717
getSettings(): ResourceSettings<SshAddConfig> {
1818
return {
19-
id: 'ssh-add-key',
19+
id: 'ssh-add',
2020
schema: Schema,
2121
parameterSettings: {
2222
path: {
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { afterEach, beforeEach, describe, it } from 'vitest';
22
import { PluginTester } from 'codify-plugin-test';
33
import path from 'node:path';
44

5-
describe('Ssh Add Key tests', () => {
5+
describe('Ssh Add tests', () => {
66
let plugin: PluginTester;
77

88
beforeEach(() => {

0 commit comments

Comments
 (0)