Project Initialisation
added Project files
This commit is contained in:
34
internal/models/models.go
Normal file
34
internal/models/models.go
Normal file
@@ -0,0 +1,34 @@
|
||||
package models
|
||||
|
||||
type TerminalSettings struct {
|
||||
Term string `json:"term" yaml:"term"`
|
||||
EnableKittyFix bool `json:"enable_kitty_fix" yaml:"enable_kitty_fix"`
|
||||
}
|
||||
|
||||
type Settings struct {
|
||||
Theme string `json:"theme" yaml:"theme"`
|
||||
Terminal TerminalSettings `json:"terminal" yaml:"terminal"`
|
||||
}
|
||||
|
||||
type Server struct {
|
||||
Name string `json:"name" yaml:"name"`
|
||||
Host string `json:"host" yaml:"host"`
|
||||
User string `json:"user" yaml:"user"`
|
||||
Port int `json:"port" yaml:"port"`
|
||||
Group string `json:"group" yaml:"group"`
|
||||
Auth string `json:"auth" yaml:"auth"`
|
||||
Key string `json:"key" yaml:"key"`
|
||||
PasswordID string `json:"password_id" yaml:"password_id"`
|
||||
KittyFix bool `json:"kitty_fix" yaml:"kitty_fix"`
|
||||
}
|
||||
|
||||
type QuickCommand struct {
|
||||
Name string `json:"name" yaml:"name"`
|
||||
Command string `json:"command" yaml:"command"`
|
||||
}
|
||||
|
||||
type AppConfig struct {
|
||||
Settings Settings `json:"settings" yaml:"settings"`
|
||||
Servers []Server `json:"servers" yaml:"servers"`
|
||||
QuickCommands []QuickCommand `json:"quick_commands" yaml:"quick_commands"`
|
||||
}
|
||||
Reference in New Issue
Block a user