File tree Expand file tree Collapse file tree 5 files changed +36
-1
lines changed
Expand file tree Collapse file tree 5 files changed +36
-1
lines changed Original file line number Diff line number Diff line change 1313d=" $( cd " $( dirname " $0 " ) " /.. && pwd) "
1414PATH=" $d /libexec:$PATH "
1515
16+ if ! available.ts " $@ " ; then
17+ echo " warning: not supported on current platform" >&2
18+ if test -n " $GITHUB_ACTIONS " ; then
19+ echo " unavailable=true" >> " $GITHUB_ENV "
20+ fi
21+ exit 0
22+ fi
23+
1624if test -z " $1 " ; then
1725 if test -z " $TEA_PANTRY_PATH " ; then
1826 echo " error: TEA_PANTRY_PATH is not set" >&2
Original file line number Diff line number Diff line change 55d=" $( cd " $( dirname " $0 " ) " /.. && pwd) "
66PATH=" $d /libexec:$PATH "
77
8+ if ! available.ts " $@ " ; then
9+ echo " warning: not supported on current platform" >&2
10+ if test -n " $GITHUB_ACTIONS " ; then
11+ echo " unavailable=true" >> " $GITHUB_ENV "
12+ fi
13+ exit 0
14+ fi
15+
816if test -z " $1 " ; then
917 if test -z " $TEA_PANTRY_PATH " ; then
1018 echo " error: TEA_PANTRY_PATH is not set" >&2
Original file line number Diff line number Diff line change 1919 "deno.land" : " ^1.30"
2020 }
2121 },
22- "importMap" : " https://raw.githubusercontent.com/teaxyz/cli/v0.27 /import-map.json"
22+ "importMap" : " https://raw.githubusercontent.com/teaxyz/cli/v0.29 /import-map.json"
2323}
Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ export function createConfig(): Config {
2828 debug : verbosity >= Verbosity . debug ,
2929 silent : verbosity <= Verbosity . quiet ,
3030 env,
31+ json : false
3132 }
3233}
3334
Original file line number Diff line number Diff line change 1+ #!/usr/bin/env -S deno run --allow-env --allow-read
2+
3+ import { parseFlags } from "cliffy/flags/mod.ts"
4+ import { usePantry } from "hooks"
5+ import { parse } from "utils/pkg.ts"
6+
7+ import tea_init from "../lib/init().ts"
8+ tea_init ( )
9+
10+ const { unknown : pkgnames } = parseFlags ( Deno . args )
11+
12+ const pantry = usePantry ( )
13+
14+ for ( const pkg of pkgnames . map ( parse ) ) {
15+ if ( ! await pantry . available ( pkg ) ) {
16+ Deno . exit ( 1 )
17+ }
18+ }
You can’t perform that action at this time.
0 commit comments