aboutsummaryrefslogtreecommitdiff
path: root/pkg/config
diff options
context:
space:
mode:
authorJulien Dessaux2021-11-17 10:13:06 +0100
committerJulien Dessaux2021-11-17 10:13:06 +0100
commitc3263c03776401ad1263a9fb8f5a44a8ed44d61b (patch)
tree7dac91753cb4428ede2ba72fb09eca9ba6c2daab /pkg/config
parentUpdated dependencies (diff)
downloadshell-game-launcher-c3263c03776401ad1263a9fb8f5a44a8ed44d61b.tar.gz
shell-game-launcher-c3263c03776401ad1263a9fb8f5a44a8ed44d61b.tar.bz2
shell-game-launcher-c3263c03776401ad1263a9fb8f5a44a8ed44d61b.zip
Refactored package structure
Diffstat (limited to '')
-rw-r--r--pkg/config/action.go (renamed from config/action.go)0
-rw-r--r--pkg/config/action_test.go (renamed from config/action_test.go)0
-rw-r--r--pkg/config/app.go (renamed from config/app.go)1
-rw-r--r--pkg/config/app_test.go (renamed from config/app_test.go)0
-rw-r--r--pkg/config/command.go (renamed from config/command.go)0
-rw-r--r--pkg/config/command_test.go (renamed from config/command_test.go)0
-rw-r--r--pkg/config/config.go (renamed from config/config.go)0
-rw-r--r--pkg/config/config_test.go (renamed from config/config_test.go)2
-rw-r--r--pkg/config/game.go (renamed from config/game.go)0
-rw-r--r--pkg/config/game_test.go (renamed from config/game_test.go)0
-rw-r--r--pkg/config/menu.go (renamed from config/menu.go)0
-rw-r--r--pkg/config/menu_test.go (renamed from config/menu_test.go)0
-rw-r--r--pkg/config/test_data/duplicate_game.yaml (renamed from config/test_data/duplicate_game.yaml)0
-rw-r--r--pkg/config/test_data/duplicate_menu.yaml (renamed from config/test_data/duplicate_menu.yaml)0
-rw-r--r--pkg/config/test_data/fake_nethack_directory/.keep (renamed from config/test_data/fake_nethack_directory/.keep)0
-rw-r--r--pkg/config/test_data/invalid_app.yaml (renamed from config/test_data/invalid_app.yaml)0
-rw-r--r--pkg/config/test_data/invalid_game.yaml (renamed from config/test_data/invalid_game.yaml)0
-rw-r--r--pkg/config/test_data/invalid_menus.yaml (renamed from config/test_data/invalid_menus.yaml)0
-rw-r--r--pkg/config/test_data/invalid_yaml (renamed from config/test_data/invalid_yaml)0
-rw-r--r--pkg/config/test_data/minimal.yaml (renamed from config/test_data/minimal.yaml)0
-rw-r--r--pkg/config/test_data/no_anonymous_menu.yaml (renamed from config/test_data/no_anonymous_menu.yaml)0
-rw-r--r--pkg/config/test_data/no_logged_in_menu.yaml (renamed from config/test_data/no_logged_in_menu.yaml)0
-rw-r--r--pkg/config/test_data/non_existant_chopts.yaml (renamed from config/test_data/non_existant_chopts.yaml)0
-rw-r--r--pkg/config/test_data/non_existant_game.yaml (renamed from config/test_data/non_existant_game.yaml)0
-rw-r--r--pkg/config/test_data/non_existant_menu.yaml (renamed from config/test_data/non_existant_menu.yaml)0
-rw-r--r--pkg/config/test_data/not_enough_menus.yaml (renamed from config/test_data/not_enough_menus.yaml)0
-rw-r--r--pkg/config/test_data/unreachable_game.yaml (renamed from config/test_data/unreachable_game.yaml)0
-rw-r--r--pkg/config/test_data/unreachable_menu.yaml (renamed from config/test_data/unreachable_menu.yaml)0
28 files changed, 2 insertions, 1 deletions
diff --git a/config/action.go b/pkg/config/action.go
index c63308e..c63308e 100644
--- a/config/action.go
+++ b/pkg/config/action.go
diff --git a/config/action_test.go b/pkg/config/action_test.go
index dbc6ae3..dbc6ae3 100644
--- a/config/action_test.go
+++ b/pkg/config/action_test.go
diff --git a/config/app.go b/pkg/config/app.go
index 2eefb98..2787517 100644
--- a/config/app.go
+++ b/pkg/config/app.go
@@ -21,6 +21,7 @@ type App struct {
MenuMaxIdleTime int `yaml:"MenuMaxIdleTime"`
// PostLoginCommands is the list of commands to execute upon login, like creating save directories for games
PostLoginCommands []string `yaml:"PostLoginCommands"`
+ // TODO admin contact
}
func (a *App) validate() error {
diff --git a/config/app_test.go b/pkg/config/app_test.go
index 5a6cf41..5a6cf41 100644
--- a/config/app_test.go
+++ b/pkg/config/app_test.go
diff --git a/config/command.go b/pkg/config/command.go
index 34142cd..34142cd 100644
--- a/config/command.go
+++ b/pkg/config/command.go
diff --git a/config/command_test.go b/pkg/config/command_test.go
index 7e07956..7e07956 100644
--- a/config/command_test.go
+++ b/pkg/config/command_test.go
diff --git a/config/config.go b/pkg/config/config.go
index b68a26a..b68a26a 100644
--- a/config/config.go
+++ b/pkg/config/config.go
diff --git a/config/config_test.go b/pkg/config/config_test.go
index dfa8237..8eb6598 100644
--- a/config/config_test.go
+++ b/pkg/config/config_test.go
@@ -211,7 +211,7 @@ func TestLoadFile(t *testing.T) {
},
},
}
- config, err = LoadFile("../example/complete.yaml")
+ config, err = LoadFile("../../example/complete.yaml")
if err != nil {
t.Fatalf("complete example failed with error : %v", err)
}
diff --git a/config/game.go b/pkg/config/game.go
index b5f4d39..b5f4d39 100644
--- a/config/game.go
+++ b/pkg/config/game.go
diff --git a/config/game_test.go b/pkg/config/game_test.go
index b3bf107..b3bf107 100644
--- a/config/game_test.go
+++ b/pkg/config/game_test.go
diff --git a/config/menu.go b/pkg/config/menu.go
index 7321c7b..7321c7b 100644
--- a/config/menu.go
+++ b/pkg/config/menu.go
diff --git a/config/menu_test.go b/pkg/config/menu_test.go
index e9abef1..e9abef1 100644
--- a/config/menu_test.go
+++ b/pkg/config/menu_test.go
diff --git a/config/test_data/duplicate_game.yaml b/pkg/config/test_data/duplicate_game.yaml
index f01a017..f01a017 100644
--- a/config/test_data/duplicate_game.yaml
+++ b/pkg/config/test_data/duplicate_game.yaml
diff --git a/config/test_data/duplicate_menu.yaml b/pkg/config/test_data/duplicate_menu.yaml
index 3dbefb7..3dbefb7 100644
--- a/config/test_data/duplicate_menu.yaml
+++ b/pkg/config/test_data/duplicate_menu.yaml
diff --git a/config/test_data/fake_nethack_directory/.keep b/pkg/config/test_data/fake_nethack_directory/.keep
index e69de29..e69de29 100644
--- a/config/test_data/fake_nethack_directory/.keep
+++ b/pkg/config/test_data/fake_nethack_directory/.keep
diff --git a/config/test_data/invalid_app.yaml b/pkg/config/test_data/invalid_app.yaml
index ed236ea..ed236ea 100644
--- a/config/test_data/invalid_app.yaml
+++ b/pkg/config/test_data/invalid_app.yaml
diff --git a/config/test_data/invalid_game.yaml b/pkg/config/test_data/invalid_game.yaml
index d58c3ee..d58c3ee 100644
--- a/config/test_data/invalid_game.yaml
+++ b/pkg/config/test_data/invalid_game.yaml
diff --git a/config/test_data/invalid_menus.yaml b/pkg/config/test_data/invalid_menus.yaml
index 1df5fbf..1df5fbf 100644
--- a/config/test_data/invalid_menus.yaml
+++ b/pkg/config/test_data/invalid_menus.yaml
diff --git a/config/test_data/invalid_yaml b/pkg/config/test_data/invalid_yaml
index db1ddad..db1ddad 100644
--- a/config/test_data/invalid_yaml
+++ b/pkg/config/test_data/invalid_yaml
diff --git a/config/test_data/minimal.yaml b/pkg/config/test_data/minimal.yaml
index 22a0a6c..22a0a6c 100644
--- a/config/test_data/minimal.yaml
+++ b/pkg/config/test_data/minimal.yaml
diff --git a/config/test_data/no_anonymous_menu.yaml b/pkg/config/test_data/no_anonymous_menu.yaml
index a015160..a015160 100644
--- a/config/test_data/no_anonymous_menu.yaml
+++ b/pkg/config/test_data/no_anonymous_menu.yaml
diff --git a/config/test_data/no_logged_in_menu.yaml b/pkg/config/test_data/no_logged_in_menu.yaml
index 43d0054..43d0054 100644
--- a/config/test_data/no_logged_in_menu.yaml
+++ b/pkg/config/test_data/no_logged_in_menu.yaml
diff --git a/config/test_data/non_existant_chopts.yaml b/pkg/config/test_data/non_existant_chopts.yaml
index d3f796d..d3f796d 100644
--- a/config/test_data/non_existant_chopts.yaml
+++ b/pkg/config/test_data/non_existant_chopts.yaml
diff --git a/config/test_data/non_existant_game.yaml b/pkg/config/test_data/non_existant_game.yaml
index 9bf6a38..9bf6a38 100644
--- a/config/test_data/non_existant_game.yaml
+++ b/pkg/config/test_data/non_existant_game.yaml
diff --git a/config/test_data/non_existant_menu.yaml b/pkg/config/test_data/non_existant_menu.yaml
index f0f30a3..f0f30a3 100644
--- a/config/test_data/non_existant_menu.yaml
+++ b/pkg/config/test_data/non_existant_menu.yaml
diff --git a/config/test_data/not_enough_menus.yaml b/pkg/config/test_data/not_enough_menus.yaml
index f585f44..f585f44 100644
--- a/config/test_data/not_enough_menus.yaml
+++ b/pkg/config/test_data/not_enough_menus.yaml
diff --git a/config/test_data/unreachable_game.yaml b/pkg/config/test_data/unreachable_game.yaml
index f2f22e2..f2f22e2 100644
--- a/config/test_data/unreachable_game.yaml
+++ b/pkg/config/test_data/unreachable_game.yaml
diff --git a/config/test_data/unreachable_menu.yaml b/pkg/config/test_data/unreachable_menu.yaml
index f947cf7..f947cf7 100644
--- a/config/test_data/unreachable_menu.yaml
+++ b/pkg/config/test_data/unreachable_menu.yaml