mirror of
https://github.com/shanghai-edu/multissh.git
synced 2025-12-16 21:37:50 +00:00
version 0.2.2
add filelocate
This commit is contained in:
parent
360caeb82e
commit
82bd4c6577
3 changed files with 14 additions and 10 deletions
4
g/cfg.go
4
g/cfg.go
|
|
@ -84,8 +84,8 @@ func GetJsonFile(filePath string) ([]SSHHost, error) {
|
|||
result = m.SshHosts
|
||||
return result, nil
|
||||
}
|
||||
func WriteIntoTxt(sshResult SSHResult) error {
|
||||
outputFile, outputError := os.OpenFile(sshResult.Host+".txt", os.O_WRONLY|os.O_CREATE, 0666)
|
||||
func WriteIntoTxt(sshResult SSHResult, locate string) error {
|
||||
outputFile, outputError := os.OpenFile(locate+sshResult.Host+".txt", os.O_WRONLY|os.O_CREATE, 0666)
|
||||
if outputError != nil {
|
||||
return outputError
|
||||
}
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@ package g
|
|||
// 0.1.2 fix ssh error on h3c switch
|
||||
// 0.2
|
||||
// 0.2.1
|
||||
// add write locate file
|
||||
const (
|
||||
VERSION = "0.2.1"
|
||||
VERSION = "0.2.2"
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue