summaryrefslogtreecommitdiff
path: root/internal/config/config.go
diff options
context:
space:
mode:
authorLibravatar Tobi Smethurst <31960611+tsmethurst@users.noreply.github.com>2021-06-24 14:26:08 +0200
committerLibravatar GitHub <noreply@github.com>2021-06-24 14:26:08 +0200
commitc1e107266fc47e59657825f1178f5e79c78ab0e6 (patch)
tree1daa297f6e61bead4ed3d728fedc2a39604d377f /internal/config/config.go
parentTimeline bugfix (#60) (diff)
downloadgotosocial-c1e107266fc47e59657825f1178f5e79c78ab0e6.tar.xz
nodeinfo compliance (#61)
Diffstat (limited to 'internal/config/config.go')
-rw-r--r--internal/config/config.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/internal/config/config.go b/internal/config/config.go
index b0263b170..3705c364f 100644
--- a/internal/config/config.go
+++ b/internal/config/config.go
@@ -59,9 +59,9 @@ type Config struct {
/*
Not parsed from .yaml configuration file.
- For short running commands (admin CLI tools etc).
*/
AccountCLIFlags map[string]string
+ SoftwareVersion string
}
// FromFile returns a new config from a file, or an error if something goes amiss.
@@ -252,6 +252,8 @@ func (c *Config) ParseCLIFlags(f KeyedFlags) error {
c.LetsEncryptConfig.EmailAddress = f.String(fn.LetsEncryptEmailAddress)
}
+ c.SoftwareVersion = GetDefaults().SoftwareVersion
+
// command-specific flags
// admin account CLI flags
@@ -323,6 +325,7 @@ type Defaults struct {
ConfigPath string
Host string
Protocol string
+ SoftwareVersion string
DbType string
DbAddress string