Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thrawn01/rewrite-args
Small tool to rewrite arguments before calling an executable
https://github.com/thrawn01/rewrite-args
args cli hostname regexp ssh
Last synced: 5 days ago
JSON representation
Small tool to rewrite arguments before calling an executable
- Host: GitHub
- URL: https://github.com/thrawn01/rewrite-args
- Owner: thrawn01
- Created: 2018-05-30T14:49:04.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-09-13T15:16:47.000Z (about 6 years ago)
- Last Synced: 2024-06-20T11:09:41.008Z (5 months ago)
- Topics: args, cli, hostname, regexp, ssh
- Language: Go
- Size: 2.93 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Synopsis
#### If the following is true
```
alias ssh='rewrite-args ssh -X'
```#### and ~/.rewrite-args.conf contains
```json
{
"debug": false,
"rewrites": [
{
"match": ".use1",
"replace": ".prod.us-east-1.postgun.com"
}
]
}
```#### Given the following command
```
ssh worker-n01.use1
```#### Will expand too
```
/usr/bin/ssh -X worker-n01.prod.us-east-1.postgun.com
```## Installation
Download the latest binary [release](https://github.com/thrawn01/rewrite-args/releases)
**OR**
`go install github.com/thrawn01/rewrite-args`