// `gjsify flatpak` — yargs subcommand-group dispatcher.
//
// Wires {init, build, deps, ci}. Each subcommand is a self-contained
// `Command<>` so it composes the same way as `gresource` / `gettext` /
// `gsettings` at the top level.
import { flatpakInitCommand } from './init.js';
import { flatpakBuildCommand } from './build.js';
import { flatpakDepsCommand } from './deps.js';
import { flatpakCiCommand } from './ci.js';
export const flatpakCommand = {
    command: 'flatpak <subcommand>',
    description: 'Flatpak toolchain: init/build/deps/ci subcommands for shipping GJS apps and CLIs as Flatpaks.',
    builder: (yargs) => {
        return yargs
            .command(flatpakInitCommand.command, flatpakInitCommand.description, flatpakInitCommand.builder, flatpakInitCommand.handler)
            .command(flatpakBuildCommand.command, flatpakBuildCommand.description, flatpakBuildCommand.builder, flatpakBuildCommand.handler)
            .command(flatpakDepsCommand.command, flatpakDepsCommand.description, flatpakDepsCommand.builder, flatpakDepsCommand.handler)
            .command(flatpakCiCommand.command, flatpakCiCommand.description, flatpakCiCommand.builder, flatpakCiCommand.handler)
            .demandCommand(1)
            .strict();
    },
};
export { flatpakInitCommand, flatpakBuildCommand, flatpakDepsCommand, flatpakCiCommand, };
