2.0.3 • Published 2 years ago

copado-git-get-mock v2.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

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
2.0.3

2 years ago

2.0.2

2 years ago

2.0.1

2 years ago

2.0.0

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago