| Crates.io | nu_plugin_chipa_touch |
| lib.rs | nu_plugin_chipa_touch |
| version | 0.1.0 |
| created_at | 2025-10-12 08:35:40.92118+00 |
| updated_at | 2025-10-12 08:35:40.92118+00 |
| description | A Nushell plugin for managing file copyright headers using customizable templates. |
| homepage | |
| repository | https://github.com/ChipaDevTeam/chipa-touch |
| max_upload_size | |
| id | 1879063 |
| size | 245,353 |
A touch-like CLI that automatically adds copyright comments at the start of each file created, with powerful configuration management.
# Initialize configuration in your git repo
ctouch init
# Configure your details
ctouch config add-field "name" "Your Name" --section owner
ctouch config add-field "license" "MIT"
# Create files with copyright headers
ctouch src/main.rs src/lib.rs
ctouch <paths> - Create files with copyright headersctouch init [--global] - Initialize configuration filectouch config show - Display current configurationctouch config add-field <key> <value> - Add configuration fieldctouch config remove-field <key> - Remove configuration fieldctouch config list-fields - List all fields in a sectionctouch config add-author <username> - Add team memberctouch config remove-author <index> - Remove team memberctouch config list-authors - List all authorsctouch config set-template <content> - Update templateFor complete documentation, see:
# Build the plugin
cargo build --release
# Register with Nushell
register target/release/chipa-touch.exe
Configurations are stored as TOML files:
<git-root>/ctouch.toml~/.config/nushell/ctouch/config.toml[config]
template = """
Copyright (c) {current_year} {owner.name}
License: {license}
Team: {{ for author in authors }}@{author.username}{{ endfor }}
"""
[config.owner]
username = "yourusername"
name = "Your Name"
[[authors]]
username = "teammate"
name = "Team Mate"
role = "Developer"
[variables]
license = "MIT"
project = "awesome-project"
Available in templates:
{owner.username}, {owner.name} - Owner information{current_year}, {current_date} - Date/time values{ctouch_version} - Tool version[variables] section{authors} - Array of team membersSee LICENSE file for details.