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