An open API service indexing awesome lists of open source software.

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

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.