diff --git a/cli/bun.lockb b/cli/bun.lockb index 58a91c9..2587130 100755 Binary files a/cli/bun.lockb and b/cli/bun.lockb differ diff --git a/cli/index.ts b/cli/index.ts index 0d2b755..0ba722e 100644 --- a/cli/index.ts +++ b/cli/index.ts @@ -7,6 +7,7 @@ import { LogoutCommand } from "./src/cmd/logout.ts" import { ListServerCommand } from "./src/cmd/list.ts" import { StatusCommand } from "./src/cmd/status.ts" import { InfoCommand } from "./src/cmd/info.ts" +import { ProcessCommand } from "./src/cmd/process-info.ts" const [node, app, ...args] = process.argv @@ -29,4 +30,5 @@ cli.register(LogoutCommand) cli.register(ListServerCommand) cli.register(StatusCommand) cli.register(InfoCommand) +cli.register(ProcessCommand) cli.runExit(args) \ No newline at end of file diff --git a/cli/package.json b/cli/package.json index 4b95169..682ffcb 100644 --- a/cli/package.json +++ b/cli/package.json @@ -11,6 +11,7 @@ }, "dependencies": { "chalk": "^5.3.0", + "cli-table3": "^0.6.5", "clipanion": "^4.0.0-rc.4", "figlet": "^1.7.0", "ora": "^8.1.0" diff --git a/cli/src/cmd/process-info.ts b/cli/src/cmd/process-info.ts new file mode 100644 index 0000000..48cfa06 --- /dev/null +++ b/cli/src/cmd/process-info.ts @@ -0,0 +1,146 @@ +import { Command, Option, type Usage } from "clipanion" +import { RsConfig } from "../utils/config.ts" +import { createAuthHeader } from "../utils/auth.ts" +import Table from "cli-table3" +import chalk from "chalk" +import ora from "ora" + +export class ProcessCommand extends Command { + static paths = [[`process`], [`ps`]] + static usage: Usage = { + category: `Networking`, + description: `Loading the application of RoadSign Server`, + details: `Fetching the configured things amount and other things of a connected server`, + examples: [ + ["Fetch app directory from labeled server", `ps