tgcom is a command-line tool designed to comment, uncomment, and toggle comments in source code files. It supports multiple languages including JavaScript, Go, and Bash, and can be extended to support more. The tool can handle single lines, ranges of lines, and a mix of both. It also supports handling streams from stdin and processes multiple files and ranges in one command.
go get github.com/dyne/tgcom? back to top
tgcom --file <filename> --line <line_number> --action <comment|uncomment|toggle>Comment a Single Line
tgcom --file main.go --line 10 --action commentUncomment a Range of Lines
tgcom --file main.go --lines 10-20 --action uncommentToggle Comments on Multiple Files and Lines
tgcom --files main.go:10-20,script.sh:4,index.html:#<p>,#</p> --action toggleUsing Stdin
cat main.go | tgcom --line 10 --action commentUsing Labels for Sections
tgcom --file main.go --start-label START --end-label END --action comment? back to top
Language Support:
File Handling:
Commenting Functionality:
Performance:
User Interface:
main.js:10-20 script.sh:4 index.html:#<p>,#</p>.Testing:
? back to top
Documentation - Getting started and more.
? Ecosystem - Plugins, resources, and more.
Issues - Bugs end errors you encounter using tgcom.
Discussions - Get help, ask questions, request features, and discuss tgcom.
[] Matrix - Hanging out with the community.
Discord - Hanging out with the community.
? Telegram - Hanging out with the community.
Example - An example repository that uses tgcom.
? back to top
Please refer to DOCKER PACKAGES
? back to top
Copyleft ? 2023 by Dyne.org foundation, Amsterdam
Designed, written and maintained by Puria Nafisi Azizi.
? back to top
Please first take a look at the Dyne.org - Contributor License Agreement then
git checkout -b feature/branch
git commit -am 'feat: New featurencloses #398'
git push origin feature/branch
gh pr create -f
? back to top
tgcom - toggle comments in source files
Copyleft ? 2023 Dyne.org foundation, Amsterdam
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
? back to top