Thanks to visit codestin.com
Credit goes to github.com

Skip to content

thrawn01/rewrite-args

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Synopsis

If the following is true

alias ssh='rewrite-args ssh -X'

and ~/.rewrite-args.conf contains

{
  "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

OR

go install github.com/thrawn01/rewrite-args

About

Small tool to rewrite arguments before calling an executable

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published