https://github.com/nikiforovall/copy-paster
Copy-paste-driven development made easy.
https://github.com/nikiforovall/copy-paster
copy-paste dotnet-tool productivity
Last synced: 13 days ago
JSON representation
Copy-paste-driven development made easy.
- Host: GitHub
- URL: https://github.com/nikiforovall/copy-paster
- Owner: NikiforovAll
- License: mit
- Created: 2021-12-19T19:48:50.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-12-20T11:55:44.000Z (over 3 years ago)
- Last Synced: 2025-04-11T12:14:58.057Z (15 days ago)
- Topics: copy-paste, dotnet-tool, productivity
- Language: C#
- Homepage: https://nikiforovall.github.io/dotnet/2021/12/20/dotnet-global-tool-copy-paster.html
- Size: 21.5 KB
- Stars: 3
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# NikiforovAll.CopyPaster
[](https://github.com/NikiforovAll/copy-paster/actions/workflows/build.yml)
[](https://nuget.org/packages/NikiforovAll.CopyPaster)
[](https://www.nuget.org/packages/NikiforovAll.CopyPaster/)
[](https://www.nuget.org/packages/NikiforovAll.CopyPaster/)
[](https://github.com/nikiforovall/copy-paster/blob/main/LICENSE)
[](https://github.com/nikiforovall/copy-paster)Downloads code and saves it to local file system. Copy-paste-driven development made easy.
Same as `wget https://URL/ --output-document=FILE_NAME`, but you don't have to pass a link to raw version. It rewrites "https://github.com" to "https://raw.githubusercontent.com/" automatically for you.
## Install
`dotnet tool install --global NikiforovAll.CopyPaster`
## Run
```bash
copa https://github.com/NikiforovAll/copy-paster/blob/main/README.md
# creates README.md in current folder
```## More details
```bash
$ dotnet run -- -h
Description:
Copies file by urlUsage:
NikiforovAll.CopyPaster [options]Arguments:
urlOptions:
-o, --output Output file path
--dry-run Dry run
--raw Raw. No panel
--version Show version information
-?, -h, --help Show help and usage information
```## TODO
* [X] rewrite "github.com" -> https://raw.githubusercontent.com/
* [] consider: format code according to project styles (namespace refactoring, formatting)
* [] handle folder download
* [] port to npx
* [] cross-platform path handling
* [] ⚠ currently, it overrides files stored locally, prompt user for final decision## Credits
Icon: