https://github.com/copyleftdev/touch
very simple app that allow you to use the linux touch command in windows
https://github.com/copyleftdev/touch
golang utility windows
Last synced: 3 months ago
JSON representation
very simple app that allow you to use the linux touch command in windows
- Host: GitHub
- URL: https://github.com/copyleftdev/touch
- Owner: copyleftdev
- Created: 2023-08-30T22:59:42.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-08-30T23:03:52.000Z (over 1 year ago)
- Last Synced: 2024-06-21T01:54:02.495Z (11 months ago)
- Topics: golang, utility, windows
- Language: Go
- Homepage:
- Size: 1.95 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Of course! Here's a README for your implementation of the `touch` command for Windows using Go:
---
# 🖋 `touch` for Windows - Go Implementation
A simple implementation of the classic Unix `touch` command for Windows, written in Go. Easily create new files or update the modification time of existing ones right from the command line.
## 📌 Features
- **Create New Files**: Instantly create a new file if it doesn't exist.
- **Update Modification Time**: Refresh the modification time of an existing file to the current system time.## 🚀 Getting Started
### Prerequisites
- Go (version 1.x or newer)
### Installation
1. Clone the repository:
```bash
git clone https://github.com/copyleftdev/touch.git
cd touch
```2. Build the project:
```bash
go build -o touch.exe touch.go
```This will generate the `touch.exe` executable.
### Usage
To use the `touch` command:
```bash
./touch.exe
```Replace `` with your desired file name.
## 🤝 Contributing
Pull requests are welcome! For major changes, please open an issue first to discuss the changes you'd like to make.
## 📜 License
This project is licensed under the MIT License - see the `LICENSE` file for more details.