How commands work in Pastel
mainPastel treats every file in the commands folder as a command. The filename (excluding extension) becomes the command name. Each command file must export a React component that renders the command's output.
To define type-safe options and arguments, export an options object created with zod. The component receives these options as props.
Example command (commands/login.tsx):
import React from 'react';
import {Text} from 'ink';
export default function Login() {
return <Text>Logging in</Text>;
}