https://github.com/lnsp/bench
Patching using everyday infrastructure.
https://github.com/lnsp/bench
file-sync filesystem golang http https patch
Last synced: 4 months ago
JSON representation
Patching using everyday infrastructure.
- Host: GitHub
- URL: https://github.com/lnsp/bench
- Owner: lnsp
- License: mit
- Created: 2016-09-10T14:35:55.000Z (over 9 years ago)
- Default Branch: develop
- Last Pushed: 2017-03-24T22:30:48.000Z (almost 9 years ago)
- Last Synced: 2025-07-23T16:56:25.342Z (6 months ago)
- Topics: file-sync, filesystem, golang, http, https, patch
- Language: Go
- Homepage:
- Size: 58.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
Bench [](https://goreportcard.com/report/github.com/lnsp/bench) [](https://travis-ci.org/lnsp/bench)
========
Bench is a file patch system using HTTP(S) and SHA-1 hashing.
## Installation
Run `go get github.com/lnsp/bench/cmd/bench` to install the `bench` binary.
## Usage guide
**Important:** Your working folder is automatically made the target folder for patch generation and fetching. To change this behavior, use the `--target "my-target"` flag to chose your target independently from your working directory.
### Fetching a patch
If you first getting started you may want to fetch a patch from a source (either a web server or a local folder).
This can be done using the `bench fetch` command.
- If you patch your target for the first time, you have to include a `--source "patch-source"` flag to specify your patch source. This can either be a folder on your local file system like `/etc/foo/bar` or a web address like `https://example.com/foo/bar/`.
- If you already have patched once or more, the stakes are high that your existing patch file has a source included. You can try it without specifying a special source, but if it fails, try to repeat the step above.
### Generating a patch
If you want to generate a patch, you can just enter `patch generate`. If you want to make it easier for your user to patch from your source, include the `--source "my-source"` flag to simplify their patching process (but ensure that the source can be mapped to your data).
## License
Copyright 2016 Lennart Espe. All rights reserved.
Use of this source code is governed by a MIT-style license that can be found in the LICENSE.md file.