You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for your interest in bash-lib. Before contributing, please take a
3
+
moment to read and sign our [Contributor
4
+
Agreement](CyberArk_Open_Source_Contributor_Agreement.pdf). This provides
5
+
patent protection for all bash-lib users and allows CyberArk to
6
+
enforce its license terms. Please email a signed copy to <a
7
+
href="oss@cyberark.com">oss@cyberark.com</a>
8
+
9
+
Contributed bash functions are most welcome! The more we share the less we
10
+
duplicate each other. In order to keep this repo tidy, every function must be
11
+
documented in the readme and tested, the lint scripts enforce these rules.
12
+
13
+
1. Add the libraries or functions that you need
14
+
2. Add BATS tests for all new top level functions
15
+
3. Add descriptions for each function to the contents table in this readme
16
+
4. Run ./run-tests to ensure all tests pass before submitting
17
+
5. Create a PR
18
+
6. Wait for review
19
+
20
+
## Style Guide
21
+
Follow the [google shell style guide](https://google.github.io/styleguide/shell.xml#Naming_Conventions).
22
+
TL;DR:
23
+
1. Use snake_case function and variable names
24
+
1. Use `function` when declaring functions.
25
+
1. Don't use .sh extensions
26
+
27
+
## Testing
28
+
Tests are written using [BATS](https://github.com/bats-core/bats). Each lib has a `lib-name.bats` file in [tests-for-this-repo](/tests-for-this-repo).
29
+
Asserts are provided by [bats-assert-1](https://github.com/jasonkarns/bats-assert-1). Asserts provide useful debugging output when the assertion fails, eg expected x got y.
Copy file name to clipboardExpand all lines: README.md
+6-54Lines changed: 6 additions & 54 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -76,9 +76,9 @@ files within it's directory.
76
76
├── run-tests # top level test script, executes all tests
77
77
├── secrets.yml # secrets required for executing tests
78
78
├── test-utils
79
-
│ ├── bats # subtree
80
-
│ ├── bats-assert-1 # subtree
81
-
│ ├── bats-support # subtree
79
+
│ ├── bats # git subtree
80
+
│ ├── bats-assert-1 # git subtree
81
+
│ ├── bats-support # git subtree
82
82
│ ├── lib
83
83
│ └── tap2junit
84
84
└── tests-for-this-repo
@@ -90,14 +90,8 @@ files within it's directory.
90
90
├── python-lint # supporting files for python lint
91
91
├── run-bats-tests # script to run bats tests
92
92
├── run-gitleaks # script to check for leaked secrets
93
-
└── run-python-lint # script to run python lint
93
+
└── run-python-lint # script to run python lint
94
94
```
95
-
## Style Guide
96
-
Follow the [google shell style guide](https://google.github.io/styleguide/shell.xml#Naming_Conventions).
97
-
TL;DR:
98
-
1. Use snake_case function and variable names
99
-
1. Use `function` when declaring functions.
100
-
101
95
102
96
## Contents
103
97
@@ -179,50 +173,8 @@ TL;DR:
179
173
</tbody>
180
174
</table>
181
175
182
-
# Contibuting
183
-
Thanks for your interest in bash-lib. Before contributing, please take a
184
-
moment to read and sign our [Contributor
185
-
Agreement](CyberArk_Open_Source_Contributor_Agreement.pdf). This provides
186
-
patent protection for all Secretless Broker users and allows CyberArk to
187
-
enforce its license terms. Please email a signed copy to <a
188
-
href="oss@cyberark.com">oss@cyberark.com</a>
189
-
190
-
Contributed bash functions are most welcome! The more we share the less we
191
-
duplicate each other. In order to keep this repo tidy, every function must be
192
-
documented in the readme and tested, the lint scripts enforce these rules.
193
-
194
-
1. Add the libraries or functions that you need
195
-
1. Add BATS tests for all new top level functions
196
-
1. Add descriptions for each function to the contents table in this readme
197
-
1. Run ./run-tests to ensure all tests pass before submitting
198
-
1. Create a PR
199
-
1. Wait for review
200
-
201
-
## Testing
202
-
Tests are written using [BATS](https://github.com/bats-core/bats). Each lib has a `lib-name.bats` file in [tests-for-this-repo](/tests-for-this-repo).
203
-
Asserts are provided by [bats-assert-1](https://github.com/jasonkarns/bats-assert-1). Asserts provide useful debugging output when the assertion fails, eg expected x got y.
0 commit comments