import type { CommandArgs, CommandName } from "../utils/args.js";

export type CommandFlag = {
  flag: string;
  description: string;
};

export type CommandContext = {
  args: CommandArgs;
  commands: CommandModule[];
};

export type CommandModule = {
  name: CommandName;
  description: string;
  flags: CommandFlag[];
  handler: (ctx: CommandContext) => Promise<void>;
};
