10 lines
No EOL
253 B
TypeScript
10 lines
No EOL
253 B
TypeScript
import { Command, ExecuteParams } from "../command";
|
|
|
|
export const hostname = new Command()
|
|
.setManual({
|
|
purpose: "Display the hostname"
|
|
})
|
|
.setExecute(function(args, params) {
|
|
const { hostname } = params as ExecuteParams;
|
|
return hostname;
|
|
}); |