File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 11#!/usr/bin/env -S pkgx deno^2 run -A
22
3- //TODO if you step into dev-dir/subdir does it work ?
3+ //TODO if you step into dev-dir/subdir and type `dev` does it find the root properly ?
44//TODO dev off uses PWD which may not be correct if in subdir (obv)
55
66import { Path , utils } from "libpkgx" ;
77import shellcode from "./src/shellcode().ts" ;
88import sniff from "./src/sniff.ts" ;
99import shell_escape from "./src/shell-escape.ts" ;
10+ import app_version from "./src/app-version.ts" ;
1011
1112switch ( Deno . args [ 0 ] ) {
1213 case "--help" : {
@@ -20,6 +21,10 @@ switch (Deno.args[0]) {
2021 console . log ( shellcode ( ) ) ;
2122 Deno . exit ( 0 ) ;
2223 break ; // deno lint insists
24+ case "--version" :
25+ console . log ( `dev ${ app_version } ` ) ;
26+ Deno . exit ( 0 ) ;
27+ break ; // deno lint insists
2328}
2429
2530const snuff = await sniff ( Path . cwd ( ) ) ;
Original file line number Diff line number Diff line change 1+ export default "0.0.0+dev" ;
You can’t perform that action at this time.
0 commit comments