UNPKG

draaft

Version:

A CLI to pull content from https://pilot.pm content collaboration platform and feed your static site generator with markdown files

46 lines (45 loc) 1.61 kB
import { flags } from "@oclif/command"; import { OutputFlags } from "@oclif/parser"; import { BaseCommand } from "../base"; import { Channel } from "../types"; export default class Pull extends BaseCommand { static description: string; static flags: { help: import("@oclif/parser/lib/flags").IBooleanFlag<void>; ssg: flags.IOptionFlag<string | undefined>; dest: flags.IOptionFlag<string | undefined>; channel: import("@oclif/parser/lib/flags").IOptionFlag<number[]>; publicationState: import("@oclif/parser/lib/flags").IOptionFlag<number[]>; overwrite: import("@oclif/parser/lib/flags").IBooleanFlag<boolean>; }; parsedFlags: OutputFlags<typeof Pull.flags>; destFolder: string; channelsList: Channel[]; selectedChannelIds: number[]; selectedChannels: Channel[]; publicationStateIds: number[]; run(): Promise<void>; /******************** * Destination Folder ********************/ seekDestFolder(): Promise<void>; /******************** * Source file ********************/ writeSourceFile(contentSourceFilePath: string): void; loadSourceFile(contentSourceFilePath: string): void; /******************** * Channels ********************/ fetchChannelsList(): Promise<void>; seekChannelIds(): Promise<void>; findChannels(): void; /******************** * Publication state ********************/ seekPublicationState(): Promise<void>; /******************** * Terraforming ********************/ terraform(): Promise<void>; }