UNPKG

@artilleryio/platform-fargate

Version:
1 lines 543 B
module.exports={postNote:postNoteCommand};const postNote=require("../data-api/notes/post-note")["postNote"],setDefaultAWSCredentials=require("../utils/aws-set-default-credentials"),normalizeCLIFlags=require("../utils/normalize-cli-flags");async function postNoteCommand(options){normalizeCLIFlags(["test-run-id"],options);try{await setDefaultAWSCredentials();var noteId=await postNote(options.testRunId,options.text);console.log(JSON.stringify({id:noteId}))}catch(err){console.error("Something went wrong"),console.error(err),process.exit(1)}}