https://github.com/hernancerm/zmasseur
Massage files.
https://github.com/hernancerm/zmasseur
build zsh
Last synced: 2 months ago
JSON representation
Massage files.
- Host: GitHub
- URL: https://github.com/hernancerm/zmasseur
- Owner: hernancerm
- License: mit
- Created: 2025-03-14T02:10:51.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-14T02:35:13.000Z (over 1 year ago)
- Last Synced: 2025-03-14T03:24:33.161Z (over 1 year ago)
- Topics: build, zsh
- Language: Shell
- Homepage:
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# zmasseur
Massage files using Zsh. "Massaging" means processing annotations.
Annotations are meant to **modify** a file and are lines beginning with: `#@`.
## Usage
The file to be massaged is "main.zsh":
`main.zsh`
```sh
#@shebang
#@executable
#@expand ./lib.zsh
smile
````
The file "main.zsh" uses the function from this file:
`lib.zsh`
```sh
function smile {
echo 'c:'
}
```
Massage "main.zsh" into the new file "smile" with: `zmasseur main.zsh smile`
`smile`
```sh
#!/bin/zsh -f
function smile {
echo 'c:'
}
smile
```