Skip to content

IlanCosman/clownfish

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 

Repository files navigation

Clownfish

Installation

With fisher:

fisher install IlanCosman/clownfish

Usage

Usage: mock [options] [command] [argument] [executed code]

Options:
  -e or --erase    erase a mocked command/argument
  -h or --help     print this help message

Examples:
  mock git pull "echo This command echoes succesfully"
  mock git push "echo This command fails with status 1; return 1"
  mock git \* "echo This command acts as a fallback to all git commands"

  mock -e git push # Removes git push mock
  mock -e git \* # Removes the fallback mock
  mock -e git # Removes all git mocks

Tips:
  - Many mocks can be applied to the same command at the same time with different arguments.
  - Be sure to escape the asterisk symbol when using it as a fallback (\*).

Acknowledgements

  • fish-mock - Inspired much of Clownfish's design and creation.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Languages