https://github.com/happycog/cog
https://github.com/happycog/cog
bash shell
Last synced: 9 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/happycog/cog
- Owner: happycog
- Created: 2016-12-20T21:51:41.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2023-02-14T19:46:35.000Z (over 3 years ago)
- Last Synced: 2025-08-09T07:42:36.462Z (11 months ago)
- Topics: bash, shell
- Language: Shell
- Size: 7.47 MB
- Stars: 10
- Watchers: 14
- Forks: 4
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Cog

## Installation
With [yarn](https://github.com/yarnpkg/yarn) do:
`yarn global add hc-cog`
## Scripts
All scripts run through `bin/cog`. When you run a `command`, `bin/cog` looks for `bin/cog-command` and executes it.
Whenever you create, delete, or modify a script, you must update `bin/cog-help`.
## Usage
Running `cog` on the command line will list all of the available scripts and a short description. Any new script you make will overwrite the global defaults. You can run `cog make:script dev` and create a custom bash script based on that specific project
## Plugins
You can add plugins to `cog` through the .cogconfig file. A plugin consists of a directory of `cog-` commands, which can exist anywhere within your file system.
Run `cog config` to create the `.cogconfig` file in your home directory.
You can then edit the `COG_PLUGIN_DIRECTORIES=` variable with a comma-separated list of paths where your `cog-` scripts are stored.
## Update
Run `cog update` to receive the latest version.
To update this package, run `yarn version {patch, minor, major}` followed by `yarn publish`
## Builds
If you're using `Go` to write any commands, put your source `.go` file into the `src` directory and run this command to build it into a binary in the `bin` directory:
```
yarn run build
```