diff --git a/cmd/templaterender/render.go b/cmd/templaterender/render.go index 9544edc..a3e3a95 100644 --- a/cmd/templaterender/render.go +++ b/cmd/templaterender/render.go @@ -57,7 +57,6 @@ func main() { SshKeys: []string{"a", "b"}, ErrorMessages: []string{}, RemoteShells: map[templates2.Shell]bool{templates2.POWERSHELL: true}, - LocalShells: nil, } shellUsage := func() templ.Component { return templates2.ShellUsageTab(access, usageInputs) diff --git a/pkg/server/templates/usageinputs.go b/pkg/server/templates/usageinputs.go index a5dbe08..b6983da 100644 --- a/pkg/server/templates/usageinputs.go +++ b/pkg/server/templates/usageinputs.go @@ -10,7 +10,6 @@ type UsageInputs struct { ErrorMessages []string RemoteShells map[Shell]bool - LocalShells map[Shell]bool DownloadCommand DownloadMethod CertificateValidation bool } @@ -22,16 +21,12 @@ func NewUsageInputs(id string, sshPublicKeys []string, remoteShells []string, lo Id: id, SshKeys: sshPublicKeys, RemoteShells: make(map[Shell]bool), - LocalShells: make(map[Shell]bool), DownloadCommand: DownloadMethod(downloadCommand), CertificateValidation: certificateValidation, } for _, remoteShell := range remoteShells { inputs.RemoteShells[Shell(remoteShell)] = true } - for _, localShell := range localShells { - inputs.LocalShells[Shell(localShell)] = true - } return inputs }