FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
code-server/test/utils/runCodeServerCommand.ts at v4.90.0 · coder/code-server · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
coder
/
code-server
Public
Notifications
You must be signed in to change notification settings
Fork
6.8k
Star
79.1k
Code
Issues
144
Pull requests
7
Discussions
Actions
Projects
Security and quality
1
Insights
Additional navigation options
Code
Issues
Pull requests
Discussions
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
code-server
/
test
/
utils
/
runCodeServerCommand.ts
Copy path
More file actions
More file actions
Latest commit
History
History
History
19 lines (17 loc) · 605 Bytes
Breadcrumbs
code-server
/
test
/
utils
/
runCodeServerCommand.ts
Copy path
File metadata and controls
19 lines (17 loc) · 605 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import
{
exec
}
from
"child_process"
import
path
from
"path"
import
{
promisify
}
from
"util"
/**
*
* A helper function for integration tests to run code-server commands.
*/
export
async
function
runCodeServerCommand
(
argv
:
string
[
]
,
env
?:
NodeJS
.
ProcessEnv
,
)
:
Promise
<
{
stdout
:
string
;
stderr
:
string
}
>
{
const
CODE_SERVER_COMMAND
=
process
.
env
.
CODE_SERVER_PATH
||
path
.
resolve
(
"../../release-standalone/bin/code-server"
)
const
{
stdout
,
stderr
}
=
await
promisify
(
exec
)
(
`
${
CODE_SERVER_COMMAND
}
${
argv
.
join
(
" "
)
}
`
,
{
env
:
{
...
process
.
env
,
...
env
}
,
}
)
return
{
stdout
,
stderr
}
}
Back
|
FazBrowse Home
|
New Git URL