google / google/addlicense

Allow for reading from stdin and writing to stdout.

Open
#64 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
886
Forks
194
PR merge metrics
No merged PRs in 30d

Description

`addlicense` currently always modifies source files in-place. This makes it difficult to use in scripts or integrate into other formatting tools, such as the [`fix`](https://www.mercurial-scm.org/repo/hg/file/tip/hgext/fix.py) Mercurial extension.

Since the filename is unknown when operating on content from stdin, this would entail adding an option to specify the filename to assume. For example, `clang-format` has an `--assume-filename` option for this purpose.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.