Skip to content

Commit

Permalink
add cli command to check version flag
Browse files Browse the repository at this point in the history
  • Loading branch information
mrswastik-robot committed Jan 22, 2025
1 parent 874f8c2 commit bdd963a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions apps/cli/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,11 @@ import ScanCommand from '@/commands/scan.command'
import ProjectCommand from './commands/project.command'
import SecretCommand from './commands/secret.command'
import VariableCommand from './commands/variable.command'
import { version } from '../package.json'

const program = new Command()

program.version(version, '-v, --version', 'Output the current version')
program.option('--profile <string>', 'The profile to use')
program.option('--api-key <string>', 'The API key to use')
program.option('--base-url <string>', 'The base URL to use')
Expand Down
6 changes: 4 additions & 2 deletions apps/cli/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
"@/*": ["./src/*"]
},
"outDir": "dist",
"plugins": [{ "transform": "typescript-transform-paths" }]
"plugins": [{ "transform": "typescript-transform-paths" }],
"resolveJsonModule": true,
"esModuleInterop": true
},
"tsc-alias": {
"resolveFullPaths": true,
Expand All @@ -21,6 +23,6 @@
"forceConsistentCasingInFileNames": true,
"noFallthroughCasesInSwitch": true
},
"include": ["src/**/*.ts", ".eslintrc.cjs", "tsup.config.ts"],
"include": ["src/**/*.ts", ".eslintrc.cjs", "tsup.config.ts", "package.json"],
"exclude": ["node_modules"]
}

0 comments on commit bdd963a

Please sign in to comment.