Skip to content

Commit

Permalink
feature: Add Indicating dynamic version
Browse files Browse the repository at this point in the history
  • Loading branch information
quag-cactus committed Nov 2, 2022
1 parent 529c210 commit 4d58eab
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ import (
"io"
)

var version string

func rewriteCfg(cfg *ssh_config.Config, targetPtn string, inputHostName string) (bool, error) {

// try to rewrite config
Expand Down Expand Up @@ -75,7 +77,7 @@ func main() {
targetPtn := *targetPtnPtr
inputHostName := *inputHostNamePtr

fmt.Println("======== Auto SSH-Config Editor ========")
fmt.Printf("======== Auto SSH-Config Editor %s ========\n", version)
fmt.Println("Targeted HostName:", targetPtn)

// define config path
Expand Down

0 comments on commit 4d58eab

Please sign in to comment.