Skip to content

Commit

Permalink
Merge pull request #422 from rockcarver/pr/421
Browse files Browse the repository at this point in the history
Pr/421
  • Loading branch information
vscheuber authored Jul 17, 2024
2 parents 6cb9091 + eb7c91f commit a19189c
Show file tree
Hide file tree
Showing 742 changed files with 890,698 additions and 1,107,118 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,9 @@ out
# Stores VSCode versions used for testing VSCode extensions
.vscode-test

# Stores JetBrain IDE's configuration
.idea

# yarn v2
.yarn/cache
.yarn/unplugged
Expand All @@ -133,4 +136,4 @@ out
.pnp.*

test/fs_tmp/*
!test/fs_tmp/.gitkeep
!test/fs_tmp/.gitkeep
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@
]
},
"devDependencies": {
"@rockcarver/frodo-lib": "2.0.0-95",
"@rockcarver/frodo-lib": "2.0.0-96",
"@types/colors": "^1.2.1",
"@types/fs-extra": "^11.0.1",
"@types/jest": "^29.2.3",
Expand Down
4 changes: 2 additions & 2 deletions src/cli/FrodoCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ export class FrodoCommand extends FrodoStubCommand {
// additional help
this.addHelpText(
'after',
`\nEvironment Variables:\n` +
`\nEnvironment Variables:\n` +
` FRODO_HOST: Access Management base URL. Overrides 'host' argument.\n` +
` FRODO_REALM: Realm. Overrides 'realm' argument.\n` +
` FRODO_USERNAME: Username. Overrides 'username' argument.\n` +
Expand Down Expand Up @@ -322,7 +322,7 @@ export class FrodoCommand extends FrodoStubCommand {
// fail fast if an incompatible deployment type option (-m or --type) was provided
if (
state.getDeploymentType() &&
!(state.getDeploymentType() in this.types)
!this.types.includes(state.getDeploymentType())
) {
throw new FrodoError(
`Command does not support deployment type '${state.getDeploymentType()}'`
Expand Down
6 changes: 3 additions & 3 deletions src/cli/agent/agent-import.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ export default function setup() {
.addOption(
new Option(
'-a, --all',
'Import all cmds from single file. Ignored with -i.'
'Import all agents from single file. Ignored with -i.'
)
)
.addOption(
new Option(
'-A, --all-separate',
'Import all cmds from separate files (*.cmd.json) in the current directory. Ignored with -i or -a.'
'Import all agents from separate files (*.agent.json) in the current directory. Ignored with -i or -a.'
)
)
.action(
Expand Down Expand Up @@ -69,7 +69,7 @@ export default function setup() {
const outcome = await importAgentsFromFiles();
if (!outcome) process.exitCode = 1;
}
// import first journey in file
// import first agent in file
else if (options.file) {
verboseMessage('Importing first agent in file...');
const outcome = await importFirstAgentFromFile(options.file);
Expand Down
2 changes: 1 addition & 1 deletion src/cli/authz/authz.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import TypeCmd from './authz-type.js';

export default function setup() {
const program = new FrodoStubCommand('authz').description(
'Manage authotiztion policies, policy sets, and resource types.'
'Manage authorization policies, policy sets, and resource types.'
);

program.addCommand(SetCmd().name('set'));
Expand Down
13 changes: 0 additions & 13 deletions src/cli/config/config-import.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,6 @@ export default function setup() {
.addOption(
new Option('-C, --clean', 'Remove existing service(s) before importing.')
)
.addOption(
new Option('-g, --global', 'Import service(s) as global service(s).')
)
.addOption(
new Option(
'-r, --current-realm',
'Import service(s) into the current realm.'
)
)
.addOption(
new Option(
'--re-uuid-journeys',
Expand Down Expand Up @@ -116,8 +107,6 @@ export default function setup() {
reUuidJourneys: options.reUuidJourneys,
reUuidScripts: options.reUuidScripts,
cleanServices: options.clean,
global: options.global,
realm: options.realm,
includeDefault: options.default,
includeActiveValues: options.includeActiveValues,
source: options.source,
Expand All @@ -140,8 +129,6 @@ export default function setup() {
reUuidJourneys: options.reUuidJourneys,
reUuidScripts: options.reUuidScripts,
cleanServices: options.clean,
global: options.global,
realm: options.realm,
includeDefault: options.default,
includeActiveValues: options.includeActiveValues,
source: options.source,
Expand Down
2 changes: 1 addition & 1 deletion src/cli/esv/esv-variable-delete.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const deploymentTypes = ['cloud'];

export default function setup() {
const program = new FrodoCommand(
'frodo cmd sub2 delete',
'frodo esv variable delete',
['realm'],
deploymentTypes
);
Expand Down
5 changes: 1 addition & 4 deletions src/ops/AgentOps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ const agentTypeToFileIdMap = {

/**
* List agents
* @param {boolean} [long=false] detailed list
* @returns {Promise<boolean>} true if successful, false otherwise
*/
export async function listAgents(long: boolean = false): Promise<boolean> {
Expand Down Expand Up @@ -1306,7 +1307,6 @@ export async function deleteWebAgent(agentId: string): Promise<boolean> {

/**
* Delete agents
* @param {string} agentId agent id/name
* @returns {Promise<boolean>} true if successful, false otherwise
*/
export async function deleteAgents(): Promise<boolean> {
Expand All @@ -1321,7 +1321,6 @@ export async function deleteAgents(): Promise<boolean> {

/**
* Delete identity gateway agents
* @param {string} agentId agent id/name
* @returns {Promise<boolean>} true if successful, false otherwise
*/
export async function deleteIdentityGatewayAgents(): Promise<boolean> {
Expand All @@ -1336,7 +1335,6 @@ export async function deleteIdentityGatewayAgents(): Promise<boolean> {

/**
* Delete java agents
* @param {string} agentId agent id/name
* @returns {Promise<boolean>} true if successful, false otherwise
*/
export async function deleteJavaAgents(): Promise<boolean> {
Expand All @@ -1351,7 +1349,6 @@ export async function deleteJavaAgents(): Promise<boolean> {

/**
* Delete web agents
* @param {string} agentId agent id/name
* @returns {Promise<boolean>} true if successful, false otherwise
*/
export async function deleteWebAgents(): Promise<boolean> {
Expand Down
Loading

0 comments on commit a19189c

Please sign in to comment.