mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-05-02 13:57:05 +02:00
12 lines
412 B
TypeScript
12 lines
412 B
TypeScript
import { Terminal } from "../../Terminal";
|
|
import { BaseServer } from "../../Server/BaseServer";
|
|
import { StdIO } from "../StdIO/StdIO";
|
|
|
|
export function hostname(args: (string | number | boolean)[], server: BaseServer, stdIO: StdIO): void {
|
|
if (args.length !== 0) {
|
|
Terminal.error("Incorrect usage of hostname command. Usage: hostname", stdIO);
|
|
return;
|
|
}
|
|
Terminal.print(server.hostname, stdIO);
|
|
}
|