🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

copado-mock

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

copado-mock

Mock for Copado multi-cloud executable

latest
Source
npmnpm
Version
1.0.3
Version published
Maintainers
1
Created
Source

Mock for Copado command

view on npm view on npm license npm module downloads GitHub closed issues GitHub releases

This very simple mock-version of copado seeks to allow developers local testing without the need of uploading their code to Copado functions online.

Currently the functionality is limited to checking if parameters are correct without actually implementing anything but a console.log for each correct command.

Install

npm install -g copado-mock

Supported options

  • --progress "your message" (alias: -p)
  • --error-message "your message" -p "Error" (aliases: -e, --error) - note that adding -p is required!
  • --result-data "your message" -p "Done" (alias: -r) - note that adding -p is required!
  • --uploadfile "temp/file/path.js" --name "somefile.js" --parentid (alias: -u); adding --name seems to be optional
    • --name "name of file.js"
    • --parentid "salesforce id to which a file shall be uploaded to"
  • --downloadfiles "temp/file/path.js"
    • --parentid "salesforce id to which a file shall be uploaded to"

Examples

copado --error-message "help, we are sinking!" -p "Error"
copado --uploadfile "temp/file/path.js" --parentid "0015500000WOHciAAH" --name "best-file-ever.js"

FAQs

Package last updated on 05 Oct 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts