version
This commit is contained in:
parent
d2c24da7dc
commit
040c3a8c47
|
|
@ -43,9 +43,12 @@ async function findShoutFiles(paths: string[]): Promise<string[]> {
|
|||
return files.sort()
|
||||
}
|
||||
|
||||
import pkg from "../../package.json"
|
||||
|
||||
program
|
||||
.name("shout")
|
||||
.description("$ shell output tester")
|
||||
.version(pkg.version)
|
||||
|
||||
program
|
||||
.command("test")
|
||||
|
|
@ -154,6 +157,13 @@ program
|
|||
process.exit(failures.length > 0 ? 1 : 0)
|
||||
})
|
||||
|
||||
program
|
||||
.command("version")
|
||||
.description("Print the version")
|
||||
.action(() => {
|
||||
console.log(pkg.version)
|
||||
})
|
||||
|
||||
program
|
||||
.command("example")
|
||||
.description("Print an example .shout file")
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user