Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 32 additions & 22 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 @@ -126,7 +126,6 @@
"chokidar": "^4.0.3",
"cli-progress": "^3.11.2",
"cli-table3": "^0.6.3",
"colors": "^1.4.0",
"commander": "^11.0.0",
"compare-versions": "^6.1.0",
"copyfiles": "^2.4.1",
Expand All @@ -151,6 +150,7 @@
"resolve": "^1.22.1",
"rimraf": "^6.0.1",
"slugify": "^1.6.5",
"tinyrainbow": "^3.0.3",
"ts-jest": "^29.1.4",
"tsup": "^8.1.0",
"typescript": "^5.2.2",
Expand Down
19 changes: 10 additions & 9 deletions src/cli/_template/something-delete.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { frodo } from '@rockcarver/frodo-lib';
import { Option } from 'commander';
import c from 'tinyrainbow';

import * as s from '../../help/SampleData';
import { getTokens } from '../../ops/AuthenticateOps';
Expand Down Expand Up @@ -37,17 +38,17 @@ export default function setup() {
'after',
`Usage Examples:\n` +
` Example command one with params and explanation what it does:\n` +
` $ frodo something ${s.amBaseUrl} ${s.username} '${s.password}'\n`[
'brightCyan'
] +
c.cyan(
` $ frodo something ${s.amBaseUrl} ${s.username} '${s.password}'\n`
) +
` Example command two with params and explanation what it does:\n` +
` $ frodo something --sa-id ${s.saId} --sa-jwk-file ${s.saJwkFile} ${s.amBaseUrl}\n`[
'brightCyan'
] +
c.cyan(
` $ frodo something --sa-id ${s.saId} --sa-jwk-file ${s.saJwkFile} ${s.amBaseUrl}\n`
) +
` Example command three with params and explanation what it does:\n` +
` $ frodo something --sa-id ${s.saId} --sa-jwk-file ${s.saJwkFile} ${s.connId}\n`[
'brightCyan'
]
c.cyan(
` $ frodo something --sa-id ${s.saId} --sa-jwk-file ${s.saJwkFile} ${s.connId}\n`
)
)
.action(
// implement command logic inside action handler
Expand Down
19 changes: 10 additions & 9 deletions src/cli/_template/something-describe.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { frodo } from '@rockcarver/frodo-lib';
import { Option } from 'commander';
import c from 'tinyrainbow';

import * as s from '../../help/SampleData';
import { getTokens } from '../../ops/AuthenticateOps';
Expand All @@ -25,17 +26,17 @@ export default function setup() {
'after',
`Usage Examples:\n` +
` Example command one with params and explanation what it does:\n` +
` $ frodo something ${s.amBaseUrl} ${s.username} '${s.password}'\n`[
'brightCyan'
] +
c.cyan(
` $ frodo something ${s.amBaseUrl} ${s.username} '${s.password}'\n`
) +
` Example command two with params and explanation what it does:\n` +
` $ frodo something --sa-id ${s.saId} --sa-jwk-file ${s.saJwkFile} ${s.amBaseUrl}\n`[
'brightCyan'
] +
c.cyan(
` $ frodo something --sa-id ${s.saId} --sa-jwk-file ${s.saJwkFile} ${s.amBaseUrl}\n`
) +
` Example command three with params and explanation what it does:\n` +
` $ frodo something --sa-id ${s.saId} --sa-jwk-file ${s.saJwkFile} ${s.connId}\n`[
'brightCyan'
]
c.cyan(
` $ frodo something --sa-id ${s.saId} --sa-jwk-file ${s.saJwkFile} ${s.connId}\n`
)
)
.action(
// implement command logic inside action handler
Expand Down
19 changes: 10 additions & 9 deletions src/cli/_template/something-else-delete.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { frodo } from '@rockcarver/frodo-lib';
import { Option } from 'commander';
import c from 'tinyrainbow';

import * as s from '../../help/SampleData';
import { getTokens } from '../../ops/AuthenticateOps';
Expand Down Expand Up @@ -35,17 +36,17 @@ export default function setup() {
'after',
`Usage Examples:\n` +
` Example command one with params and explanation what it does:\n` +
` $ frodo something ${s.amBaseUrl} ${s.username} '${s.password}'\n`[
'brightCyan'
] +
c.cyan(
` $ frodo something ${s.amBaseUrl} ${s.username} '${s.password}'\n`
) +
` Example command two with params and explanation what it does:\n` +
` $ frodo something --sa-id ${s.saId} --sa-jwk-file ${s.saJwkFile} ${s.amBaseUrl}\n`[
'brightCyan'
] +
c.cyan(
` $ frodo something --sa-id ${s.saId} --sa-jwk-file ${s.saJwkFile} ${s.amBaseUrl}\n`
) +
` Example command three with params and explanation what it does:\n` +
` $ frodo something --sa-id ${s.saId} --sa-jwk-file ${s.saJwkFile} ${s.connId}\n`[
'brightCyan'
]
c.cyan(
` $ frodo something --sa-id ${s.saId} --sa-jwk-file ${s.saJwkFile} ${s.connId}\n`
)
)
.action(
// implement command logic inside action handler
Expand Down
19 changes: 10 additions & 9 deletions src/cli/_template/something-else-describe.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { frodo } from '@rockcarver/frodo-lib';
import { Option } from 'commander';
import c from 'tinyrainbow';

import * as s from '../../help/SampleData';
import { getTokens } from '../../ops/AuthenticateOps';
Expand All @@ -23,17 +24,17 @@ export default function setup() {
'after',
`Usage Examples:\n` +
` Example command one with params and explanation what it does:\n` +
` $ frodo something ${s.amBaseUrl} ${s.username} '${s.password}'\n`[
'brightCyan'
] +
c.cyan(
` $ frodo something ${s.amBaseUrl} ${s.username} '${s.password}'\n`
) +
` Example command two with params and explanation what it does:\n` +
` $ frodo something --sa-id ${s.saId} --sa-jwk-file ${s.saJwkFile} ${s.amBaseUrl}\n`[
'brightCyan'
] +
c.cyan(
` $ frodo something --sa-id ${s.saId} --sa-jwk-file ${s.saJwkFile} ${s.amBaseUrl}\n`
) +
` Example command three with params and explanation what it does:\n` +
` $ frodo something --sa-id ${s.saId} --sa-jwk-file ${s.saJwkFile} ${s.connId}\n`[
'brightCyan'
]
c.cyan(
` $ frodo something --sa-id ${s.saId} --sa-jwk-file ${s.saJwkFile} ${s.connId}\n`
)
)
.action(
// implement command logic inside action handler
Expand Down
19 changes: 10 additions & 9 deletions src/cli/_template/something-else-export.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { frodo } from '@rockcarver/frodo-lib';
import { Option } from 'commander';
import c from 'tinyrainbow';

import * as s from '../../help/SampleData';
import { getTokens } from '../../ops/AuthenticateOps';
Expand Down Expand Up @@ -47,17 +48,17 @@ export default function setup() {
'after',
`Usage Examples:\n` +
` Example command one with params and explanation what it does:\n` +
` $ frodo something ${s.amBaseUrl} ${s.username} '${s.password}'\n`[
'brightCyan'
] +
c.cyan(
` $ frodo something ${s.amBaseUrl} ${s.username} '${s.password}'\n`
) +
` Example command two with params and explanation what it does:\n` +
` $ frodo something --sa-id ${s.saId} --sa-jwk-file ${s.saJwkFile} ${s.amBaseUrl}\n`[
'brightCyan'
] +
c.cyan(
` $ frodo something --sa-id ${s.saId} --sa-jwk-file ${s.saJwkFile} ${s.amBaseUrl}\n`
) +
` Example command three with params and explanation what it does:\n` +
` $ frodo something --sa-id ${s.saId} --sa-jwk-file ${s.saJwkFile} ${s.connId}\n`[
'brightCyan'
]
c.cyan(
` $ frodo something --sa-id ${s.saId} --sa-jwk-file ${s.saJwkFile} ${s.connId}\n`
)
)
.action(
// implement command logic inside action handler
Expand Down
19 changes: 10 additions & 9 deletions src/cli/_template/something-else-import.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { frodo } from '@rockcarver/frodo-lib';
import { Option } from 'commander';
import c from 'tinyrainbow';

import * as s from '../../help/SampleData';
import { getTokens } from '../../ops/AuthenticateOps';
Expand Down Expand Up @@ -41,17 +42,17 @@ export default function setup() {
'after',
`Usage Examples:\n` +
` Example command one with params and explanation what it does:\n` +
` $ frodo something ${s.amBaseUrl} ${s.username} '${s.password}'\n`[
'brightCyan'
] +
c.cyan(
` $ frodo something ${s.amBaseUrl} ${s.username} '${s.password}'\n`
) +
` Example command two with params and explanation what it does:\n` +
` $ frodo something --sa-id ${s.saId} --sa-jwk-file ${s.saJwkFile} ${s.amBaseUrl}\n`[
'brightCyan'
] +
c.cyan(
` $ frodo something --sa-id ${s.saId} --sa-jwk-file ${s.saJwkFile} ${s.amBaseUrl}\n`
) +
` Example command three with params and explanation what it does:\n` +
` $ frodo something --sa-id ${s.saId} --sa-jwk-file ${s.saJwkFile} ${s.connId}\n`[
'brightCyan'
]
c.cyan(
` $ frodo something --sa-id ${s.saId} --sa-jwk-file ${s.saJwkFile} ${s.connId}\n`
)
)
.action(
// implement command logic inside action handler
Expand Down
19 changes: 10 additions & 9 deletions src/cli/_template/something-else-list.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { frodo } from '@rockcarver/frodo-lib';
import { Option } from 'commander';
import c from 'tinyrainbow';

import * as s from '../../help/SampleData';
import { getTokens } from '../../ops/AuthenticateOps';
Expand All @@ -25,17 +26,17 @@ export default function setup() {
'after',
`Usage Examples:\n` +
` Example command one with params and explanation what it does:\n` +
` $ frodo something ${s.amBaseUrl} ${s.username} '${s.password}'\n`[
'brightCyan'
] +
c.cyan(
` $ frodo something ${s.amBaseUrl} ${s.username} '${s.password}'\n`
) +
` Example command two with params and explanation what it does:\n` +
` $ frodo something --sa-id ${s.saId} --sa-jwk-file ${s.saJwkFile} ${s.amBaseUrl}\n`[
'brightCyan'
] +
c.cyan(
` $ frodo something --sa-id ${s.saId} --sa-jwk-file ${s.saJwkFile} ${s.amBaseUrl}\n`
) +
` Example command three with params and explanation what it does:\n` +
` $ frodo something --sa-id ${s.saId} --sa-jwk-file ${s.saJwkFile} ${s.connId}\n`[
'brightCyan'
]
c.cyan(
` $ frodo something --sa-id ${s.saId} --sa-jwk-file ${s.saJwkFile} ${s.connId}\n`
)
)
.action(
// implement command logic inside action handler
Expand Down
Loading
Loading