Skip to content

armgit / hypit

Public Imported from GitHub
0

Clone any viral video with AI agents. Not just a script, the whole workflow: swap the face, the words, the B-roll, ship 100 variants in one command, and get your 100M views.

861 B
Raw Blame
import type { CliCommandModule } from "@hypit/hypit/cli";

import { isMediaCommand, mediaCommands, runMediaCli, writeMediaHelp } from "./files.js";

export const cliCommandModules = [{
  format: "hypit.cli-command@1",
  id: "@hypit/media-local",
  commands: ["media"],
  writeRootHelp(io) {
    io.write(`\nLocal media\n  media ${mediaCommands.join(" | ")}\n  hypit media --help for exact options\n`);
  },
  writeHelp(argv, io) {
    const subcommand = argv[0] === "help" ? argv[2] : argv[1];
    writeMediaHelp(io, isMediaCommand(subcommand) ? subcommand : undefined);
  },
  async run(argv, io, context) {
    await runMediaCli(argv, io, context.cwd);
  },
}] as const satisfies readonly CliCommandModule[];

export { isMediaCommand, mediaCommands, runMediaCli, writeMediaHelp } from "./files.js";
export type { MediaCommand, MediaProbe } from "./files.js";