Skip to content

Commit 08e78dd

Browse files
authored
Merge pull request #131 from ocean/linting-corrections
Linting corrections
2 parents fb5031c + 9453ce8 commit 08e78dd

File tree

4 files changed

+225
-11
lines changed

4 files changed

+225
-11
lines changed

.ahoy.yml

+3-7
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,6 @@ commands:
6767
usage: Clean up go code per code standards.
6868
cmd: gofmt -w *.go
6969

70-
docs-build:
71-
usage: Build the docs.
72-
cmd: cd docs && make html
73-
74-
docs-deps:
75-
usage: Install the dependencies from requirements.txt.
76-
cmd: cd docs && pip install -r requirements.txt
70+
cowsay:
71+
usage: A cow says something.
72+
cmd: cowsay "$@"

.all-contributorsrc

+165
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,165 @@
1+
{
2+
"projectName": "Ahoy",
3+
"projectOwner": "ahoy-cli",
4+
"repoType": "github",
5+
"repoHost": "https://github.com",
6+
"files": [
7+
"README.md"
8+
],
9+
"imageSize": 64,
10+
"commit": true,
11+
"commitConvention": "angular",
12+
"contributors": [
13+
{
14+
"login": "jackwrfuller",
15+
"name": "Jack Fuller",
16+
"avatar_url": "https://avatars.githubusercontent.com/u/78133717?v=4",
17+
"profile": "https://github.com/jackwrfuller",
18+
"contributions": [
19+
"bug",
20+
"code",
21+
"doc",
22+
"test"
23+
]
24+
},
25+
{
26+
"login": "AlexSkrypnyk",
27+
"name": "Alex Skrypnyk",
28+
"avatar_url": "https://avatars.githubusercontent.com/u/378794?v=4",
29+
"profile": "https://www.drevops.com/",
30+
"contributions": [
31+
"bug",
32+
"review",
33+
"question",
34+
"promotion",
35+
"ideas",
36+
"financial",
37+
"security"
38+
]
39+
},
40+
{
41+
"login": "hanoii",
42+
"name": "Ariel Barreiro",
43+
"avatar_url": "https://avatars.githubusercontent.com/u/677879?v=4",
44+
"profile": "https://github.com/hanoii",
45+
"contributions": [
46+
"code"
47+
]
48+
},
49+
{
50+
"login": "ocean",
51+
"name": "Drew Robinson",
52+
"avatar_url": "https://avatars.githubusercontent.com/u/4443?v=4",
53+
"profile": "https://github.com/ocean",
54+
"contributions": [
55+
"code",
56+
"bug",
57+
"content",
58+
"doc",
59+
"ideas",
60+
"infra",
61+
"maintenance",
62+
"platform",
63+
"question",
64+
"review",
65+
"security",
66+
"test"
67+
]
68+
},
69+
{
70+
"login": "frankcarey",
71+
"name": "Frank Carey",
72+
"avatar_url": "https://avatars.githubusercontent.com/u/377330?v=4",
73+
"profile": "https://botsandbrains.com/",
74+
"contributions": [
75+
"code",
76+
"bug",
77+
"content",
78+
"doc",
79+
"ideas",
80+
"infra",
81+
"maintenance",
82+
"platform",
83+
"question",
84+
"review",
85+
"security",
86+
"test"
87+
]
88+
},
89+
{
90+
"login": "acouch",
91+
"name": "Aaron Couch",
92+
"avatar_url": "https://avatars.githubusercontent.com/u/512243?v=4",
93+
"profile": "https://github.com/acouch",
94+
"contributions": [
95+
"doc"
96+
]
97+
},
98+
{
99+
"login": "dkinzer",
100+
"name": "david kinzer (he/him)",
101+
"avatar_url": "https://avatars.githubusercontent.com/u/444215?v=4",
102+
"profile": "https://github.com/dkinzer",
103+
"contributions": [
104+
"code"
105+
]
106+
},
107+
{
108+
"login": "msound",
109+
"name": "Mani Soundararajan",
110+
"avatar_url": "https://avatars.githubusercontent.com/u/432912?v=4",
111+
"profile": "https://msound.net/",
112+
"contributions": [
113+
"doc"
114+
]
115+
},
116+
{
117+
"login": "mlncn",
118+
"name": "Benjamin Melançon",
119+
"avatar_url": "https://avatars.githubusercontent.com/u/27131?v=4",
120+
"profile": "https://agaric.coop/",
121+
"contributions": [
122+
"doc"
123+
]
124+
},
125+
{
126+
"login": "marji",
127+
"name": "Marji Cermak",
128+
"avatar_url": "https://avatars.githubusercontent.com/u/1254919?v=4",
129+
"profile": "https://morpht.com/",
130+
"contributions": [
131+
"doc"
132+
]
133+
},
134+
{
135+
"login": "aashil",
136+
"name": "Aashil Patel",
137+
"avatar_url": "https://avatars.githubusercontent.com/u/6216576?v=4",
138+
"profile": "https://github.com/aashil",
139+
"contributions": [
140+
"code",
141+
"doc"
142+
]
143+
},
144+
{
145+
"login": "arafalov",
146+
"name": "Alexandre Rafalovitch",
147+
"avatar_url": "https://avatars.githubusercontent.com/u/64153?v=4",
148+
"profile": "http://www.linkedin.com/in/alexandrerafalovitch",
149+
"contributions": [
150+
"doc"
151+
]
152+
},
153+
{
154+
"login": "ElijahLynn",
155+
"name": "Elijah Lynn",
156+
"avatar_url": "https://avatars.githubusercontent.com/u/1504756?v=4",
157+
"profile": "https://www.elijahlynn.net/",
158+
"contributions": [
159+
"doc"
160+
]
161+
}
162+
],
163+
"contributorsPerLine": 7,
164+
"contributorsSortAlphabetically": true
165+
}

README.md

+54-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
![AHOY logo](https://avatars.githubusercontent.com/u/19353604?s=250&v=4)
2+
<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
3+
[![All Contributors](https://img.shields.io/badge/all_contributors-13-orange.svg?style=flat-square)](#contributors-)
4+
<!-- ALL-CONTRIBUTORS-BADGE:END -->
25

36
# AHOY! - Automate and organize your workflows, no matter what technology you use.
47

@@ -36,7 +39,7 @@ With Ahoy, you can turn this into:
3639
- Flexible - Commands are specific to a single folder tree, so each repo/workspace can have its own commands.
3740
- Command templates - Args can be dropped into your commands using `{{args}}`
3841
- Fully interactive - Your shells (like MySQL) and prompts still work.
39-
- Self-documenting - Commands and help declared in `.ahoy.yml` show up as ahoy command help and shell completion of commands (see [bash/zsh completion](https://ahoy-cli.readthedocs.io/en/latest/#bash-zsh-completion)) is also available.
42+
- Self-documenting - Commands and help declared in `.ahoy.yml` show up as ahoy command help and shell completion of commands (see [bash/zsh completion](https://ahoy-cli.readthedocs.io/en/latest/#bash-zsh-completion)) is also available. We now have a dedicated Zsh plugin for completions at [ahoy-cli/zsh-ahoy](https://github.com/ahoy-cli/zsh-ahoy).
4043

4144
## Installation
4245

@@ -101,6 +104,16 @@ In this example, the `hello` command can also be invoked using `hi` or `greet`.
101104
- Bash completion works with aliases as well as primary command names.
102105
- **If multiple commands share the same alias, the "last in wins" rule is used and the last matching command will be executed.**
103106

107+
## Shell autocompletions
108+
109+
### Zsh
110+
111+
For Zsh completions, we have a standalone plugin available at [ahoy-cli/zsh-ahoy](https://github.com/ahoy-cli/zsh-ahoy).
112+
113+
### Bash
114+
115+
For Bash, you'll need to make sure you have bash-completion installed and setup. See [bash/zsh completion](https://ahoy-cli.readthedocs.io/en/latest/#bash-zsh-completion) for further instructions.
116+
104117
## Some additions in v2
105118

106119
- Implements a new feature to import multiple config files using the "imports" field.
@@ -156,3 +169,43 @@ commands:
156169
- Support for more built-in commands or a "verify" YAML option that would create a yes / no prompt for potentially destructive commands. (Are you sure you want to delete all your containers?)
157170
- Pipe tab completion to another command (allows you to get tab completion).
158171
- Support for configuration.
172+
173+
## Sponsors 💰 👏
174+
175+
- [<img src="https://www.drevops.com/img/drevops_logo_horiz_black.png" width="128px;"><br />Alex Skrypnyk - DrevOps](https://drevops.com)
176+
177+
## Contributors ✨
178+
179+
Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):
180+
181+
<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
182+
<!-- prettier-ignore-start -->
183+
<!-- markdownlint-disable -->
184+
<table>
185+
<tbody>
186+
<tr>
187+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/acouch"><img src="https://avatars.githubusercontent.com/u/512243?v=4?s=64" width="64px;" alt="Aaron Couch"/><br /><sub><b>Aaron Couch</b></sub></a><br /><a href="https://github.com/ahoy-cli/Ahoy/commits?author=acouch" title="Documentation">📖</a></td>
188+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/aashil"><img src="https://avatars.githubusercontent.com/u/6216576?v=4?s=64" width="64px;" alt="Aashil Patel"/><br /><sub><b>Aashil Patel</b></sub></a><br /><a href="https://github.com/ahoy-cli/Ahoy/commits?author=aashil" title="Code">💻</a> <a href="https://github.com/ahoy-cli/Ahoy/commits?author=aashil" title="Documentation">📖</a></td>
189+
<td align="center" valign="top" width="14.28%"><a href="https://www.drevops.com/"><img src="https://avatars.githubusercontent.com/u/378794?v=4?s=64" width="64px;" alt="Alex Skrypnyk"/><br /><sub><b>Alex Skrypnyk</b></sub></a><br /><a href="https://github.com/ahoy-cli/Ahoy/issues?q=author%3AAlexSkrypnyk" title="Bug reports">🐛</a> <a href="https://github.com/ahoy-cli/Ahoy/pulls?q=is%3Apr+reviewed-by%3AAlexSkrypnyk" title="Reviewed Pull Requests">👀</a> <a href="#question-AlexSkrypnyk" title="Answering Questions">💬</a> <a href="#promotion-AlexSkrypnyk" title="Promotion">📣</a> <a href="#ideas-AlexSkrypnyk" title="Ideas, Planning, & Feedback">🤔</a> <a href="#financial-AlexSkrypnyk" title="Financial">💵</a> <a href="#security-AlexSkrypnyk" title="Security">🛡️</a></td>
190+
<td align="center" valign="top" width="14.28%"><a href="http://www.linkedin.com/in/alexandrerafalovitch"><img src="https://avatars.githubusercontent.com/u/64153?v=4?s=64" width="64px;" alt="Alexandre Rafalovitch"/><br /><sub><b>Alexandre Rafalovitch</b></sub></a><br /><a href="https://github.com/ahoy-cli/Ahoy/commits?author=arafalov" title="Documentation">📖</a></td>
191+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/hanoii"><img src="https://avatars.githubusercontent.com/u/677879?v=4?s=64" width="64px;" alt="Ariel Barreiro"/><br /><sub><b>Ariel Barreiro</b></sub></a><br /><a href="https://github.com/ahoy-cli/Ahoy/commits?author=hanoii" title="Code">💻</a></td>
192+
<td align="center" valign="top" width="14.28%"><a href="https://agaric.coop/"><img src="https://avatars.githubusercontent.com/u/27131?v=4?s=64" width="64px;" alt="Benjamin Melançon"/><br /><sub><b>Benjamin Melançon</b></sub></a><br /><a href="https://github.com/ahoy-cli/Ahoy/commits?author=mlncn" title="Documentation">📖</a></td>
193+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/ocean"><img src="https://avatars.githubusercontent.com/u/4443?v=4?s=64" width="64px;" alt="Drew Robinson"/><br /><sub><b>Drew Robinson</b></sub></a><br /><a href="https://github.com/ahoy-cli/Ahoy/commits?author=ocean" title="Code">💻</a> <a href="https://github.com/ahoy-cli/Ahoy/issues?q=author%3Aocean" title="Bug reports">🐛</a> <a href="#content-ocean" title="Content">🖋</a> <a href="https://github.com/ahoy-cli/Ahoy/commits?author=ocean" title="Documentation">📖</a> <a href="#ideas-ocean" title="Ideas, Planning, & Feedback">🤔</a> <a href="#infra-ocean" title="Infrastructure (Hosting, Build-Tools, etc)">🚇</a> <a href="#maintenance-ocean" title="Maintenance">🚧</a> <a href="#platform-ocean" title="Packaging/porting to new platform">📦</a> <a href="#question-ocean" title="Answering Questions">💬</a> <a href="https://github.com/ahoy-cli/Ahoy/pulls?q=is%3Apr+reviewed-by%3Aocean" title="Reviewed Pull Requests">👀</a> <a href="#security-ocean" title="Security">🛡️</a> <a href="https://github.com/ahoy-cli/Ahoy/commits?author=ocean" title="Tests">⚠️</a></td>
194+
</tr>
195+
<tr>
196+
<td align="center" valign="top" width="14.28%"><a href="https://www.elijahlynn.net/"><img src="https://avatars.githubusercontent.com/u/1504756?v=4?s=64" width="64px;" alt="Elijah Lynn"/><br /><sub><b>Elijah Lynn</b></sub></a><br /><a href="https://github.com/ahoy-cli/Ahoy/commits?author=ElijahLynn" title="Documentation">📖</a></td>
197+
<td align="center" valign="top" width="14.28%"><a href="https://botsandbrains.com/"><img src="https://avatars.githubusercontent.com/u/377330?v=4?s=64" width="64px;" alt="Frank Carey"/><br /><sub><b>Frank Carey</b></sub></a><br /><a href="https://github.com/ahoy-cli/Ahoy/commits?author=frankcarey" title="Code">💻</a> <a href="https://github.com/ahoy-cli/Ahoy/issues?q=author%3Afrankcarey" title="Bug reports">🐛</a> <a href="#content-frankcarey" title="Content">🖋</a> <a href="https://github.com/ahoy-cli/Ahoy/commits?author=frankcarey" title="Documentation">📖</a> <a href="#ideas-frankcarey" title="Ideas, Planning, & Feedback">🤔</a> <a href="#infra-frankcarey" title="Infrastructure (Hosting, Build-Tools, etc)">🚇</a> <a href="#maintenance-frankcarey" title="Maintenance">🚧</a> <a href="#platform-frankcarey" title="Packaging/porting to new platform">📦</a> <a href="#question-frankcarey" title="Answering Questions">💬</a> <a href="https://github.com/ahoy-cli/Ahoy/pulls?q=is%3Apr+reviewed-by%3Afrankcarey" title="Reviewed Pull Requests">👀</a> <a href="#security-frankcarey" title="Security">🛡️</a> <a href="https://github.com/ahoy-cli/Ahoy/commits?author=frankcarey" title="Tests">⚠️</a></td>
198+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/jackwrfuller"><img src="https://avatars.githubusercontent.com/u/78133717?v=4?s=64" width="64px;" alt="Jack Fuller"/><br /><sub><b>Jack Fuller</b></sub></a><br /><a href="https://github.com/ahoy-cli/Ahoy/issues?q=author%3Ajackwrfuller" title="Bug reports">🐛</a> <a href="https://github.com/ahoy-cli/Ahoy/commits?author=jackwrfuller" title="Code">💻</a> <a href="https://github.com/ahoy-cli/Ahoy/commits?author=jackwrfuller" title="Documentation">📖</a> <a href="https://github.com/ahoy-cli/Ahoy/commits?author=jackwrfuller" title="Tests">⚠️</a></td>
199+
<td align="center" valign="top" width="14.28%"><a href="https://msound.net/"><img src="https://avatars.githubusercontent.com/u/432912?v=4?s=64" width="64px;" alt="Mani Soundararajan"/><br /><sub><b>Mani Soundararajan</b></sub></a><br /><a href="https://github.com/ahoy-cli/Ahoy/commits?author=msound" title="Documentation">📖</a></td>
200+
<td align="center" valign="top" width="14.28%"><a href="https://morpht.com/"><img src="https://avatars.githubusercontent.com/u/1254919?v=4?s=64" width="64px;" alt="Marji Cermak"/><br /><sub><b>Marji Cermak</b></sub></a><br /><a href="https://github.com/ahoy-cli/Ahoy/commits?author=marji" title="Documentation">📖</a></td>
201+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/dkinzer"><img src="https://avatars.githubusercontent.com/u/444215?v=4?s=64" width="64px;" alt="david kinzer (he/him)"/><br /><sub><b>david kinzer (he/him)</b></sub></a><br /><a href="https://github.com/ahoy-cli/Ahoy/commits?author=dkinzer" title="Code">💻</a></td>
202+
</tr>
203+
</tbody>
204+
</table>
205+
206+
<!-- markdownlint-restore -->
207+
<!-- prettier-ignore-end -->
208+
209+
<!-- ALL-CONTRIBUTORS-LIST:END -->
210+
211+
This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!

ahoy_test.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ func TestGetConfig(t *testing.T) {
187187
testYaml, err := yaml.Marshal(expected)
188188

189189
if err != nil {
190-
t.Error("Something went wrong mashalling the test object.")
190+
t.Error("Something went wrong marshalling the test object.")
191191
}
192192

193193
testFile.Write([]byte(testYaml))
@@ -199,11 +199,11 @@ func TestGetConfig(t *testing.T) {
199199
}
200200

201201
if config.Usage != expected.Usage {
202-
t.Errorf("Expected config.Usage to be %s, but actaul is %s", expected.Usage, config.Usage)
202+
t.Errorf("Expected config.Usage to be %s, but actual is %s", expected.Usage, config.Usage)
203203
}
204204

205205
if config.Commands["test-command"].Cmd != expected.Commands["test-command"].Cmd {
206-
t.Errorf("Expected config.Commands['test-command'].cmd to be %s, but actaul is %s", expected.Commands["test-command"].Cmd, config.Commands["test-command"].Cmd)
206+
t.Errorf("Expected config.Commands['test-command'].cmd to be %s, but actual is %s", expected.Commands["test-command"].Cmd, config.Commands["test-command"].Cmd)
207207
}
208208

209209
testFile.Close()

0 commit comments

Comments
 (0)