main
 1// Copyright 2022 Google LLC
 2//
 3// Licensed under the Apache License, Version 2.0 (the "License");
 4// you may not use this file except in compliance with the License.
 5// You may obtain a copy of the License at
 6//
 7//     https://www.apache.org/licenses/LICENSE-2.0
 8//
 9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15import * as _ from './index.ts'
16
17Object.assign(globalThis, _)
18// TODO: global types not working with jsr.io
19declare global {
20  type ProcessPromise = _.ProcessPromise
21  type ProcessOutput = _.ProcessOutput
22  var ProcessPromise: typeof _.ProcessPromise
23  var ProcessOutput: typeof _.ProcessOutput
24  var $: typeof _.$
25  var argv: typeof _.argv
26  var cd: typeof _.cd
27  var chalk: typeof _.chalk
28  var defaults: typeof _.defaults
29  var dotenv: typeof _.dotenv
30  var echo: typeof _.echo
31  var expBackoff: typeof _.expBackoff
32  var fs: typeof _.fs
33  var glob: typeof _.glob
34  var globby: typeof _.globby
35  var kill: typeof _.kill
36  var log: typeof _.log
37  var minimist: typeof _.minimist
38  var nothrow: typeof _.nothrow
39  var os: typeof _.os
40  var parseArgv: typeof _.parseArgv
41  var path: typeof _.path
42  var ps: typeof _.ps
43  var question: typeof _.question
44  var quiet: typeof _.quiet
45  var quote: typeof _.quote
46  var quotePowerShell: typeof _.quotePowerShell
47  var resolveDefaults: typeof _.resolveDefaults
48  var retry: typeof _.retry
49  var sleep: typeof _.sleep
50  var spinner: typeof _.spinner
51  var stdin: typeof _.stdin
52  var syncProcessCwd: typeof _.syncProcessCwd
53  var tempdir: typeof _.tempdir
54  var tempfile: typeof _.tempfile
55  var tmpdir: typeof _.tempdir
56  var tmpfile: typeof _.tempfile
57  var updateArgv: typeof _.updateArgv
58  var usePowerShell: typeof _.usePowerShell
59  var usePwsh: typeof _.usePwsh
60  var useBash: typeof _.useBash
61  var version: typeof _.version
62  var VERSION: typeof _.VERSION
63  var which: typeof _.which
64  var within: typeof _.within
65  var YAML: typeof _.YAML
66}