fix(core): update

This commit is contained in:
Philipp Kunz 2024-04-12 18:24:31 +02:00
parent e5a8bbf4a3
commit 4fd13e65c4
5 changed files with 1281 additions and 1281 deletions

View File

@ -119,6 +119,6 @@ jobs:
run: | run: |
npmci node install stable npmci node install stable
npmci npm install npmci npm install
pnpm install -g @gitzone/tsdoc pnpm install -g @git.zone/tsdoc
npmci command tsdoc npmci command tsdoc
continue-on-error: true continue-on-error: true

View File

@ -36,9 +36,9 @@
"yargs-parser": "21.1.1" "yargs-parser": "21.1.1"
}, },
"devDependencies": { "devDependencies": {
"@gitzone/tsbuild": "^2.1.66", "@git.zone/tsbuild": "^2.1.66",
"@gitzone/tsrun": "^1.2.42", "@git.zone/tsrun": "^1.2.42",
"@gitzone/tstest": "^1.0.74", "@git.zone/tstest": "^1.0.74",
"@push.rocks/tapbundle": "^5.0.4", "@push.rocks/tapbundle": "^5.0.4",
"@types/node": "^20.4.1" "@types/node": "^20.4.1"
}, },

2538
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff

View File

@ -3,6 +3,6 @@
*/ */
export const commitinfo = { export const commitinfo = {
name: '@push.rocks/smartcli', name: '@push.rocks/smartcli',
version: '4.0.8', version: '4.0.9',
description: 'easy observable cli tasks' description: 'easy observable cli tasks'
} }

View File

@ -68,6 +68,12 @@ export class Smartcli {
return triggerSubject; return triggerSubject;
} }
/**
* gets the command subject for the specified name.
* call this before calling .parse()
* @param commandNameArg
* @returns
*/
public getCommandSubject(commandNameArg: string) { public getCommandSubject(commandNameArg: string) {
const triggerObservableObject = this.commandObservableMap.findSync( const triggerObservableObject = this.commandObservableMap.findSync(
(triggerObservableObjectArg) => { (triggerObservableObjectArg) => {
@ -81,6 +87,14 @@ export class Smartcli {
} }
} }
/**
* getOption
*/
public getOption(optionNameArg: string) {
const parsedYargs = plugins.yargsParser(process.argv);
return parsedYargs[optionNameArg];
}
/** /**
* allows to specify help text to be printed above the rest of the help text * allows to specify help text to be printed above the rest of the help text
*/ */