Export Pod

Architecture

Initialization

  • create a new pod config
class ExportPodV2Command extends BaseExportPodCommand {

    gatherInputs {
        promptForPodTypeForCommand
    }

    // src/components/pods/PodCommandFactory.ts
    createPodCommandForPodType {
        new [podType].run()
    }

    // src/commands/pods/MarkdownExportPodCommand.tso
    gatherInputs {
    }

}
// [[../packages/plugin-core/src/commands/pods/BaseExportPodCommand.ts#L77]]
enrichInputs(inputs) {
    exportScope, config := inputs
    let payload

    switch(exportScope) {
        case ... {
            payload := ...
        }
    }
    return {payload, config}
}

// [[../packages/plugin-core/src/commands/pods/BaseExportPodCommand.ts#L144]]
execute {
    pod = createPod {
        // example
        return new MarkdownExportPodV2
    }

    switch exportScope {
        case text {
            pod.exportText
            @onExportComplete
        }

        case notes {

        }
    }
}

Past Tasks


Children
  1. Ref