https://github.com/fatalus69/better-touch
a smarter touch that creates directories recursively
https://github.com/fatalus69/better-touch
cli odin tool
Last synced: 5 months ago
JSON representation
a smarter touch that creates directories recursively
- Host: GitHub
- URL: https://github.com/fatalus69/better-touch
- Owner: fatalus69
- License: mit
- Created: 2025-05-28T19:27:53.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-06-18T18:43:21.000Z (about 1 year ago)
- Last Synced: 2025-07-01T17:44:06.357Z (12 months ago)
- Topics: cli, odin, tool
- Language: Odin
- Homepage:
- Size: 20.5 KB
- Stars: 2
- Watchers: 0
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# BETTER-TOUCH
**A smarter `touch` command** — `better-touch` automatically creates any missing directories in the path before creating the file, so you don't have to.
## Usage
`better-touch [OPTIONS] [FILENAME]...`
| Option | Description |
| ---------------------------- | ------------------------------------------------------------------------------- |
| `-h`, `--help` | Show this help message and exit |
| `-V`, `--version` | Show the current version |
| `-v`, `--verbose` | Enable verbose output |
| `-a`, `--access-time` | Set the access time of the file to now |
| `-t [time]`, `--time [time]` | Set access time using ISO 8601 format (planned feature) |
| `-c`, `--no-create` | Don't create the file if it doesn't exist |
> [!CAUTION]
> The `--time` option is currently **not implemented**, due to language-level limitations. It may be added in a future update.
## Installation
1. Download the latest release from the [Releases](https://github.com/fatalus69/better-touch/releases) page.
2. Extract the archive.
3. Run the install script:
````sh
bash installers/install.sh
````
This installs the binary to `/usr/local/bin/` and installs the man page.
## Development
- Clone the project and build the binary
````sh
bash build.sh
````
- To build the release version simply run
````sh
bash build.sh --release
````
> [!NOTE]
> This is a hobby-project and may contain bugs or incomplete features.