Make linking and starting code-server to the cloud a single command

This commit is contained in:
Anmol Sethi
2020-09-28 15:43:26 -04:00
parent 607444c695
commit 22c4a7e10f
3 changed files with 30 additions and 19 deletions

View File

@ -9,7 +9,7 @@ import xdgBasedir from "xdg-basedir"
const coderCloudAgent = path.resolve(__dirname, "../../lib/coder-cloud-agent")
export async function coderCloudExpose(serverName: string): Promise<void> {
export async function coderCloudLink(serverName: string): Promise<void> {
const agent = spawn(coderCloudAgent, ["link", serverName], {
stdio: ["inherit", "inherit", "pipe"],
})