mirror of
https://github.com/samuelthomas2774/nxapi.git
synced 2026-04-02 23:54:52 -05:00
21 lines
603 B
TypeScript
21 lines
603 B
TypeScript
import createDebug from 'debug';
|
|
import type { Arguments as ParentArguments } from '../cli.js';
|
|
import { Argv, YargsArguments } from '../util/yargs.js';
|
|
import * as commands from './pctl/index.js';
|
|
|
|
const debug = createDebug('cli:pctl');
|
|
|
|
export const command = 'pctl <command>';
|
|
export const desc = 'Nintendo Switch Parental Controls';
|
|
|
|
export function builder(yargs: Argv<ParentArguments>) {
|
|
for (const command of Object.values(commands)) {
|
|
// @ts-expect-error
|
|
yargs.command(command);
|
|
}
|
|
|
|
return yargs;
|
|
}
|
|
|
|
export type Arguments = YargsArguments<ReturnType<typeof builder>>;
|