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

copado-git-get-mock

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

copado-git-get-mock

Mock for Copado multi-cloud executable

latest
Source
npmnpm
Version
2.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-git-get 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 via console.log as well as running:

  • cd directory
  • git fetch orgin branch name (optionally limited by depth)
  • git checkout branch name (optionally creates the branch with -c)

The original also sets up the git origin itself.

Install

npm install -g copado-git-get-mock

Supported options

  • "branch name"
  • --create "branch name" or -c "branch name"
  • --directory "my/new/git/folder" or -d "my/new/git/folder""
  • --depth 100 (replace 100 with shallow cloning depth of your choice)
  • --verbose or -v

Examples

copado-git-get develop
copado-git-get --create "feature/1234"
copado-git-get --create "feature/1234" --directory "my/new/git/folder" --depth 40
copado-git-get "feature/1234" --directory "my/new/git/folder" --depth 40 --verbose

FAQs

Package last updated on 06 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