From 441b299966b7f53595b4f51c77d7b09687edd5b9 Mon Sep 17 00:00:00 2001 From: Krystian Panek Date: Thu, 15 Dec 2022 23:32:14 +0100 Subject: [PATCH] Bugfix --- .run/config_print.run.xml | 4 ++-- .run/instance_await_run.xml | 4 ++-- .run/instance_create.run.xml | 4 ++-- .run/instance_delete.run.xml | 4 ++-- .run/instance_down.run.xml | 4 ++-- .run/instance_status.run.xml | 6 +++--- .run/instance_up.run.xml | 4 ++-- .run/osgi_bundle_get.run.xml | 6 +++--- .run/osgi_bundle_list.run.xml | 6 +++--- .run/osgi_bundle_read.run.xml | 6 +++--- .run/osgi_bundle_start.run.xml | 6 +++--- .run/osgi_bundle_stop.run.xml | 6 +++--- .run/osgi_config_list.run.xml | 6 +++--- .run/osgi_config_read.run.xml | 6 +++--- .run/osgi_config_save.run.xml | 6 +++--- .run/repl_agent_read.run.xml | 6 +++--- pkg/cfg/config.go | 10 +++++----- pkg/cfg/defaults.go | 2 +- 18 files changed, 48 insertions(+), 48 deletions(-) diff --git a/.run/config_print.run.xml b/.run/config_print.run.xml index 9b99fe5e..8f012ff0 100644 --- a/.run/config_print.run.xml +++ b/.run/config_print.run.xml @@ -5,8 +5,8 @@ - + - \ No newline at end of file + diff --git a/.run/instance_await_run.xml b/.run/instance_await_run.xml index c36eaada..277e13ec 100644 --- a/.run/instance_await_run.xml +++ b/.run/instance_await_run.xml @@ -5,7 +5,7 @@ - + - \ No newline at end of file + diff --git a/.run/instance_create.run.xml b/.run/instance_create.run.xml index 5243c44b..db4de6e9 100644 --- a/.run/instance_create.run.xml +++ b/.run/instance_create.run.xml @@ -5,8 +5,8 @@ - + - \ No newline at end of file + diff --git a/.run/instance_delete.run.xml b/.run/instance_delete.run.xml index ab9b830f..2665dd20 100644 --- a/.run/instance_delete.run.xml +++ b/.run/instance_delete.run.xml @@ -5,8 +5,8 @@ - + - \ No newline at end of file + diff --git a/.run/instance_down.run.xml b/.run/instance_down.run.xml index 04416810..ad052d45 100644 --- a/.run/instance_down.run.xml +++ b/.run/instance_down.run.xml @@ -5,8 +5,8 @@ - + - \ No newline at end of file + diff --git a/.run/instance_status.run.xml b/.run/instance_status.run.xml index 6177bea8..985bbce8 100644 --- a/.run/instance_status.run.xml +++ b/.run/instance_status.run.xml @@ -5,8 +5,8 @@ - - + + - \ No newline at end of file + diff --git a/.run/instance_up.run.xml b/.run/instance_up.run.xml index f923d9ba..45689514 100644 --- a/.run/instance_up.run.xml +++ b/.run/instance_up.run.xml @@ -5,8 +5,8 @@ - + - \ No newline at end of file + diff --git a/.run/osgi_bundle_get.run.xml b/.run/osgi_bundle_get.run.xml index d302e67c..30639e17 100644 --- a/.run/osgi_bundle_get.run.xml +++ b/.run/osgi_bundle_get.run.xml @@ -5,8 +5,8 @@ - - + + - \ No newline at end of file + diff --git a/.run/osgi_bundle_list.run.xml b/.run/osgi_bundle_list.run.xml index cbb2ddd4..1695549b 100644 --- a/.run/osgi_bundle_list.run.xml +++ b/.run/osgi_bundle_list.run.xml @@ -5,8 +5,8 @@ - - + + - \ No newline at end of file + diff --git a/.run/osgi_bundle_read.run.xml b/.run/osgi_bundle_read.run.xml index b15f5a11..44f3e3f6 100644 --- a/.run/osgi_bundle_read.run.xml +++ b/.run/osgi_bundle_read.run.xml @@ -5,8 +5,8 @@ - - + + - \ No newline at end of file + diff --git a/.run/osgi_bundle_start.run.xml b/.run/osgi_bundle_start.run.xml index 299c96b6..8b56ace6 100644 --- a/.run/osgi_bundle_start.run.xml +++ b/.run/osgi_bundle_start.run.xml @@ -5,8 +5,8 @@ - - + + - \ No newline at end of file + diff --git a/.run/osgi_bundle_stop.run.xml b/.run/osgi_bundle_stop.run.xml index 8c27bf79..1a6baeb2 100644 --- a/.run/osgi_bundle_stop.run.xml +++ b/.run/osgi_bundle_stop.run.xml @@ -5,8 +5,8 @@ - - + + - \ No newline at end of file + diff --git a/.run/osgi_config_list.run.xml b/.run/osgi_config_list.run.xml index e7072310..47f32328 100644 --- a/.run/osgi_config_list.run.xml +++ b/.run/osgi_config_list.run.xml @@ -5,8 +5,8 @@ - - + + - \ No newline at end of file + diff --git a/.run/osgi_config_read.run.xml b/.run/osgi_config_read.run.xml index 580c28b5..e54efc1f 100644 --- a/.run/osgi_config_read.run.xml +++ b/.run/osgi_config_read.run.xml @@ -5,8 +5,8 @@ - - + + - \ No newline at end of file + diff --git a/.run/osgi_config_save.run.xml b/.run/osgi_config_save.run.xml index fd34f1d3..8f6a310b 100644 --- a/.run/osgi_config_save.run.xml +++ b/.run/osgi_config_save.run.xml @@ -5,8 +5,8 @@ - - + + - \ No newline at end of file + diff --git a/.run/repl_agent_read.run.xml b/.run/repl_agent_read.run.xml index e3cfa85a..283a2147 100644 --- a/.run/repl_agent_read.run.xml +++ b/.run/repl_agent_read.run.xml @@ -5,8 +5,8 @@ - - + + - \ No newline at end of file + diff --git a/pkg/cfg/config.go b/pkg/cfg/config.go index 92996002..e05597ff 100644 --- a/pkg/cfg/config.go +++ b/pkg/cfg/config.go @@ -16,11 +16,11 @@ import ( ) const ( - EnvPrefix = "AEM" - InputStdin = "STDIN" - - FilePathDefault = common.HomeDir + "/aem.yml" - FilePathEnvVar = "AEM_CONFIG_PATH" + EnvPrefix = "AEM" + InputStdin = "STDIN" + OutputFileDefault = common.HomeDir + "/aem.log" + FilePathDefault = common.HomeDir + "/aem.yml" + FilePathEnvVar = "AEM_CONFIG_PATH" ) // Config defines a place for managing input configuration from various sources (YML file, env vars, etc) diff --git a/pkg/cfg/defaults.go b/pkg/cfg/defaults.go index 0094cda1..b0c50678 100644 --- a/pkg/cfg/defaults.go +++ b/pkg/cfg/defaults.go @@ -14,7 +14,7 @@ func setDefaults(v *viper.Viper) { v.SetDefault("input.format", fmtx.YML) v.SetDefault("input.file", InputStdin) v.SetDefault("output.format", fmtx.Text) - v.SetDefault("output.file", FilePathDefault) + v.SetDefault("output.file", OutputFileDefault) v.SetDefault("instance.processing_mode", instance.ProcessingAuto) }