Action

Drafts CLI Helper

Posted by ernstwi, Last update 23 days ago

Helper action required for https://github.com/ernstwi/drafts

Steps

  • script

    let { program, input, app } = JSON.parse(draft.content);
    eval(
      [
        `let input = ${JSON.stringify(input)};`,
        `let app = ${JSON.stringify(app)};`,
        program,
      ].join("\n"),
    );

Options

  • After Success Default
    Notification Info
    Log Level Info
Items available in the Drafts Directory are uploaded by community members. Use appropriate caution reviewing downloaded items before use.