removed unused field LocalShells of UsageInputs.
This commit is contained in:
parent
0077bdfbc5
commit
7ab213c34e
@ -57,7 +57,6 @@ func main() {
|
|||||||
SshKeys: []string{"a", "b"},
|
SshKeys: []string{"a", "b"},
|
||||||
ErrorMessages: []string{},
|
ErrorMessages: []string{},
|
||||||
RemoteShells: map[templates2.Shell]bool{templates2.POWERSHELL: true},
|
RemoteShells: map[templates2.Shell]bool{templates2.POWERSHELL: true},
|
||||||
LocalShells: nil,
|
|
||||||
}
|
}
|
||||||
shellUsage := func() templ.Component {
|
shellUsage := func() templ.Component {
|
||||||
return templates2.ShellUsageTab(access, usageInputs)
|
return templates2.ShellUsageTab(access, usageInputs)
|
||||||
|
@ -10,7 +10,6 @@ type UsageInputs struct {
|
|||||||
ErrorMessages []string
|
ErrorMessages []string
|
||||||
|
|
||||||
RemoteShells map[Shell]bool
|
RemoteShells map[Shell]bool
|
||||||
LocalShells map[Shell]bool
|
|
||||||
DownloadCommand DownloadMethod
|
DownloadCommand DownloadMethod
|
||||||
CertificateValidation bool
|
CertificateValidation bool
|
||||||
}
|
}
|
||||||
@ -22,16 +21,12 @@ func NewUsageInputs(id string, sshPublicKeys []string, remoteShells []string, lo
|
|||||||
Id: id,
|
Id: id,
|
||||||
SshKeys: sshPublicKeys,
|
SshKeys: sshPublicKeys,
|
||||||
RemoteShells: make(map[Shell]bool),
|
RemoteShells: make(map[Shell]bool),
|
||||||
LocalShells: make(map[Shell]bool),
|
|
||||||
DownloadCommand: DownloadMethod(downloadCommand),
|
DownloadCommand: DownloadMethod(downloadCommand),
|
||||||
CertificateValidation: certificateValidation,
|
CertificateValidation: certificateValidation,
|
||||||
}
|
}
|
||||||
for _, remoteShell := range remoteShells {
|
for _, remoteShell := range remoteShells {
|
||||||
inputs.RemoteShells[Shell(remoteShell)] = true
|
inputs.RemoteShells[Shell(remoteShell)] = true
|
||||||
}
|
}
|
||||||
for _, localShell := range localShells {
|
|
||||||
inputs.LocalShells[Shell(localShell)] = true
|
|
||||||
}
|
|
||||||
return inputs
|
return inputs
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user