Skip to content

Commit c5c74d6

Browse files
authored
Docs touchups (#10)
This pull request delivers significant improvements to documentation, shell completions, and configuration for the `smoosh` project. The README has been rewritten for clarity and conciseness, with improved installation, usage, and feature documentation. Additionally, new shell autocompletion scripts for Bash, Zsh, and Fish have been added, making the CLI more user-friendly. Minor configuration adjustments were made to `.editorconfig` and `.gitattributes` for consistency and better handling of files. **Documentation improvements:** - Major rewrite and simplification of `README.md`: clearer quick start, installation, usage, and feature sections; improved AI tool integration guides; more concise FAQ; and better formatting throughout. [[1]](diffhunk://#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5L12-R18) [[2]](diffhunk://#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5L33-R64) [[3]](diffhunk://#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5L90-R133) [[4]](diffhunk://#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5L233-R168) [[5]](diffhunk://#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5L253-R193) [[6]](diffhunk://#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5L357-R283) - Minor cleanup in `CONTRIBUTING.md` for clarity. **Shell completions:** - Added Bash (`completions/smoosh.bash`), Zsh (`completions/smoosh.zsh`), and Fish (`completions/smoosh.fish`) autocompletion scripts to enhance CLI usability. [[1]](diffhunk://#diff-a850d66a2d2ef59e18a2f76c58977bbc36cfc2ec0568242c92bda2beaf61cd2eR1-R36) [[2]](diffhunk://#diff-6137cce49420e6806303fc3a742b35ad6a316238f00825515cac0b63160df9b8R1-R33) [[3]](diffhunk://#diff-8f1c88118d324d7d789f454801779074a65d2e32bccbffc3d46ac1e24119d3b2R1-R24) **Configuration and housekeeping:** - Updated `.editorconfig` for consistent whitespace, charset, and trimming rules. - Improved `.gitattributes` to better handle line endings, linguist settings, and to hide golden test outputs from PR diffs and language stats. --------- Signed-off-by: K1-R1 <77465250+K1-R1@users.noreply.github.com>
1 parent 79733a7 commit c5c74d6

10 files changed

Lines changed: 306 additions & 464 deletions

File tree

.editorconfig

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,16 @@
11
root = true
22

33
[*]
4-
charset = utf-8
54
end_of_line = lf
6-
indent_style = space
7-
indent_size = 4
8-
trim_trailing_whitespace = true
95
insert_final_newline = true
10-
max_line_length = 100
11-
12-
[smoosh]
13-
indent_style = space
14-
indent_size = 2
15-
shell_variant = bash
6+
trim_trailing_whitespace = true
7+
charset = utf-8
168

179
[*.{sh,bash,bats}]
1810
indent_style = space
1911
indent_size = 2
20-
shell_variant = bash
2112

22-
[*.{yml,yaml}]
13+
[smoosh]
2314
indent_style = space
2415
indent_size = 2
2516

.gitattributes

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,6 @@
1-
# Enforce LF line endings everywhere — prevents CRLF issues on Windows/Git Bash.
21
* text=auto eol=lf
2+
*.sh text eol=lf
3+
smoosh text eol=lf
34

4-
# Binary files — do not diff or merge.
5-
*.png binary
6-
*.gif binary
7-
*.jpg binary
8-
9-
# Shell scripts — ensure LF and enable linguist detection.
10-
*.sh text eol=lf linguist-language=Shell
11-
smoosh text eol=lf linguist-language=Shell
12-
13-
# Bats test files.
14-
*.bats text eol=lf linguist-language=Shell
5+
# Hide golden tests from PR diffs and language stats
6+
test/golden/** -diff linguist-generated=true

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ todos/
3232

3333
# test artefacts
3434
/tmp/
35+
coverage/
36+
37+
# release artefacts
38+
*.sha256
3539

3640
# fixture files that intentionally resemble secrets/env files
3741
!test/fixtures/golden-repo/.env.example

CONTRIBUTING.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
# Contributing to smoosh
22

3-
Thank you for your interest in contributing!
4-
53
## Prerequisites
64

75
- Bash 3.2+ (test with `bash --version`)

0 commit comments

Comments
 (0)