16 lines
347 B
TypeScript
16 lines
347 B
TypeScript
import { IShellCommand } from "./IShellCommand";
|
|
|
|
export class sudo implements IShellCommand {
|
|
getName(): string {
|
|
return 'sudo';
|
|
}
|
|
|
|
getManPage(): string {
|
|
return 'sudo - execute a command as another user\n\nUsage: sudo command';
|
|
}
|
|
|
|
execute(args: string[]): string {
|
|
return 'Permission denied';
|
|
}
|
|
}
|