|
| 1 | +# Gitsecure CLI |
| 2 | + |
| 3 | +Gitsecure CLI is a cutting-edge SecretOps infrastructure designed for developers and teams. |
| 4 | + |
| 5 | +## Useful links |
| 6 | + |
| 7 | +- [Github repository](git@github.com:GitsecureHQ/gitsecure-cli.git) |
| 8 | +- [Project documentation](https://mirage-collarbone-cf7.notion.site/GitSecure-Model-Structure-c610f335aa07401db311ff44fe4a8758) |
| 9 | + |
| 10 | +## Requirements |
| 11 | + |
| 12 | +- Go version 1.19 or higher |
| 13 | +- Cobra version 1.6.1 |
| 14 | + |
| 15 | +## Running the application |
| 16 | + |
| 17 | +To run the CLI, follow the steps below: |
| 18 | + |
| 19 | +```sh |
| 20 | + # Build the CLI Locally |
| 21 | + $ go build |
| 22 | + # Install the CLI after the build |
| 23 | + $ go install |
| 24 | +``` |
| 25 | + |
| 26 | +## Contributing |
| 27 | + |
| 28 | +To contribute to Gitsecure CLI, please follow these steps: |
| 29 | + |
| 30 | +1. Pick an issue from the [GitHub repository](https://github.com/GitsecureHQ/gitsecure-cli). |
| 31 | +2. Clone the repository using the following command: |
| 32 | + |
| 33 | +```sh |
| 34 | + $ git clone https://github.com/GitsecureHQ/gitsecure-cli |
| 35 | +``` |
| 36 | + |
| 37 | +3. When creating a new branch, use the following naming convention: `GSC-<issue-no>-<short-description>`, for example, `GSC-1-project-setup`. The main branch should be based on `develop`. |
| 38 | +4. When creating a pull request, select `develop` as the target branch. |
| 39 | + |
| 40 | +## Pushing changes to the repository |
| 41 | + |
| 42 | +Use the following commands to push changes to the repository: |
| 43 | + |
| 44 | +```sh |
| 45 | +# if pushing for the first time |
| 46 | +$ git push -u origin <branchname> |
| 47 | + |
| 48 | +# if pushing normally |
| 49 | +$ git push |
| 50 | +``` |
| 51 | +## Install the CLI |
| 52 | +``` |
| 53 | +# Scoop For Windows |
| 54 | +
|
| 55 | +$ scoop bucket add gitsecurehq https://github.com/GitsecureHQ/scoop-gitsecure |
| 56 | +$ scoop install gitsecure-cli |
| 57 | +$ gitsecure --version |
| 58 | +
|
| 59 | +# Brew For Mac And Linux Users |
| 60 | +
|
| 61 | +$ brew tap GitsecureHQ/brew |
| 62 | +$ brew install gitsecure |
| 63 | +$ gitsecure --version |
| 64 | +``` |
| 65 | + |
| 66 | + |
0 commit comments