Added flag for print only function plus docs #2
Loading…
Reference in New Issue
No description provided.
Delete Branch "asdf/gfu:output_stdout"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR is to add a print only flag,
-stdout
Using the
-stdout
flag means that any changes to a file are printed to stdout instead of being written to that file.This is useful for seeing how a file might change, performing troubleshooting, and also for redirection.
While the functionality change is small, the bulk of work has been in updating the documentation. It is a bit out of scope for this change, but I wanted to spend some time learning. The changes are:
go doc
gfu --help
The package comments could be moved to a standalone doc if they are too big to fit in main.go
Also, if I can figure out if/how man pages can be integrated in to the package, I'll try that too.
This all looks really great! I had not thought of piping, but can totslly see use cases. A great addition. The comment and help cleanup/buildup is great too. :)
@ -0,0 +1 @@
gfu
Awesome. I am surprised I had not done this already. THanks for adding it :thumbsup
@ -21,1 +55,4 @@
If you would like to get involved, please submit an issue. At present the developers use the tildegit issues system to discuss new features, track bugs, and communicate with users about hopes and/or issues for/with the software.
## License
This project is not currently licensed.
I would be fine with GPLv3 for this. Or maybe one of the public domain licenses. I have been unable to find a license that fits my actual desires for licensing (an apparently non-free license that restricts use to non-commercial purposes but is otherwise free/libre).