Skip to content

Commit

Permalink
feat: use inquirer for generating spec
Browse files Browse the repository at this point in the history
  • Loading branch information
mdonnalley committed Nov 7, 2024
1 parent 83cb1f6 commit 27d2ebd
Show file tree
Hide file tree
Showing 9 changed files with 641 additions and 207 deletions.
126 changes: 81 additions & 45 deletions command-snapshot.json
Original file line number Diff line number Diff line change
@@ -1,46 +1,82 @@
[
{
"alias": [],
"command": "agent:create",
"flagAliases": [],
"flagChars": ["f", "o"],
"flags": ["api-version", "flags-dir", "json", "spec", "target-org"],
"plugin": "@salesforce/plugin-agent"
},
{
"alias": [],
"command": "agent:create:spec",
"flagAliases": [],
"flagChars": ["d", "n", "o", "t"],
"flags": [
"api-version",
"company-description",
"company-name",
"company-website",
"flags-dir",
"json",
"name",
"output-dir",
"role",
"target-org",
"type"
],
"plugin": "@salesforce/plugin-agent"
},
{
"alias": [],
"command": "agent:test:cancel",
"flagAliases": [],
"flagChars": ["i", "o", "r"],
"flags": ["flags-dir", "job-id", "json", "target-org", "use-most-recent"],
"plugin": "@salesforce/plugin-agent"
},
{
"alias": [],
"command": "agent:test:run",
"flagAliases": [],
"flagChars": ["d", "i", "o", "w"],
"flags": ["flags-dir", "id", "json", "output-dir", "target-org", "wait"],
"plugin": "@salesforce/plugin-agent"
}
]
{
"alias": [],
"command": "agent:create",
"flagAliases": [],
"flagChars": [
"f",
"o"
],
"flags": [
"api-version",
"flags-dir",
"json",
"spec",
"target-org"
],
"plugin": "@salesforce/plugin-agent"
},
{
"alias": [],
"command": "agent:generate:spec",
"flagAliases": [],
"flagChars": [
"d",
"n",
"o",
"t"
],
"flags": [
"api-version",
"company-description",
"company-name",
"company-website",
"flags-dir",
"json",
"name",
"output-dir",
"role",
"target-org",
"type"
],
"plugin": "@salesforce/plugin-agent"
},
{
"alias": [],
"command": "agent:test:cancel",
"flagAliases": [],
"flagChars": [
"i",
"o",
"r"
],
"flags": [
"flags-dir",
"job-id",
"json",
"target-org",
"use-most-recent"
],
"plugin": "@salesforce/plugin-agent"
},
{
"alias": [],
"command": "agent:test:run",
"flagAliases": [],
"flagChars": [
"d",
"i",
"o",
"w"
],
"flags": [
"flags-dir",
"id",
"json",
"output-dir",
"target-org",
"wait"
],
"plugin": "@salesforce/plugin-agent"
}
]
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,14 @@
"author": "Salesforce",
"bugs": "https://github.com/forcedotcom/cli/issues",
"dependencies": {
"@inquirer/figures": "^1.0.7",
"@inquirer/input": "^4.0.1",
"@inquirer/select": "^4.0.1",
"@oclif/core": "^4",
"@salesforce/core": "^8.5.2",
"@salesforce/kit": "^3.2.1",
"@salesforce/sf-plugins-core": "^11.3.12"
"@salesforce/sf-plugins-core": "^12",
"ansis": "^3.3.2"
},
"devDependencies": {
"@oclif/plugin-command-snapshot": "^5.2.19",
Expand Down
6 changes: 4 additions & 2 deletions schemas/agent-create.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,10 @@
"type": "string"
}
},
"required": ["isSuccess"],
"required": [
"isSuccess"
],
"additionalProperties": false
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@
"type": "string"
}
},
"required": ["isSuccess"],
"required": [
"isSuccess"
],
"additionalProperties": false
}
}
}
}
7 changes: 5 additions & 2 deletions schemas/agent-test-cancel.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,11 @@
"type": "string"
}
},
"required": ["jobId", "success"],
"required": [
"jobId",
"success"
],
"additionalProperties": false
}
}
}
}
7 changes: 5 additions & 2 deletions schemas/agent-test-run.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,11 @@
"type": "string"
}
},
"required": ["jobId", "success"],
"required": [
"jobId",
"success"
],
"additionalProperties": false
}
}
}
}
123 changes: 0 additions & 123 deletions src/commands/agent/create/spec.ts

This file was deleted.

Loading

0 comments on commit 27d2ebd

Please sign in to comment.