mirror of
https://github.com/safing/portbase
synced 2025-09-01 01:59:48 +00:00
Add StackableAnnotation and update wording
This commit is contained in:
parent
8a39b73c9c
commit
45d8d7eaf9
5 changed files with 12 additions and 6 deletions
|
@ -41,7 +41,7 @@ func registerConfig() error {
|
|||
err := config.Register(&config.Option{
|
||||
Name: "API Address",
|
||||
Key: CfgDefaultListenAddressKey,
|
||||
Description: "Define on which IP and port the API should listen on.",
|
||||
Description: "Defines the IP address and port for the internal HTTP database API.",
|
||||
OptType: config.OptTypeString,
|
||||
ExpertiseLevel: config.ExpertiseLevelDeveloper,
|
||||
ReleaseLevel: config.ReleaseLevelStable,
|
||||
|
|
|
@ -41,7 +41,7 @@ func registerExpertiseLevelOption() {
|
|||
expertiseLevelOption = &Option{
|
||||
Name: "Expertise Level",
|
||||
Key: expertiseLevelKey,
|
||||
Description: "The Expertise Level controls the perceived complexity. Higher settings will show you more complex settings and information. This might also affect various other things relying on this setting. Modified settings in higher expertise levels stay in effect when switching back. (Unlike the Release Level)",
|
||||
Description: "The Expertise Level controls the perceived complexity. Higher settings will enable more complex settings and information. This might also affect various other things relying on this setting. Modified settings in higher expertise levels stay in effect when switching back. (Unlike the Release Level)",
|
||||
OptType: OptTypeString,
|
||||
ExpertiseLevel: ExpertiseLevelUser,
|
||||
ReleaseLevel: ReleaseLevelStable,
|
||||
|
@ -52,9 +52,9 @@ func registerExpertiseLevelOption() {
|
|||
},
|
||||
PossibleValues: []PossibleValue{
|
||||
{
|
||||
Name: "Easy",
|
||||
Name: "Simple",
|
||||
Value: ExpertiseLevelNameUser,
|
||||
Description: "Easy application mode by hidding complex settings.",
|
||||
Description: "Simple application mode by hidding complex settings.",
|
||||
},
|
||||
{
|
||||
Name: "Expert",
|
||||
|
|
|
@ -84,6 +84,12 @@ const (
|
|||
// SubsystemAnnotation can be used to mark an option as part
|
||||
// of a module subsystem.
|
||||
SubsystemAnnotation = "safing/portbase:module:subsystem"
|
||||
// StackableAnnotation can be set on configuration options that
|
||||
// stack on top of the default (or otherwise related) options.
|
||||
// The value of StackableAnnotaiton is expected to be a boolean but
|
||||
// may be extended to hold references to other options in the
|
||||
// future.
|
||||
StackableAnnotation = "safing/portbase:options:stackable"
|
||||
// QuickSettingAnnotation can be used to add quick settings to
|
||||
// a configuration option. A quick setting can support the user
|
||||
// by switching between pre-configured values.
|
||||
|
|
|
@ -39,7 +39,7 @@ func registerReleaseLevelOption() {
|
|||
releaseLevelOption = &Option{
|
||||
Name: "Release Level",
|
||||
Key: releaseLevelKey,
|
||||
Description: "The Release Level changes which features are available to you. Some beta or experimental features are also available in the stable release channel. Unavailable settings are set to the default value.",
|
||||
Description: "The Release Level changes which features are available. Some beta or experimental features are also available in the stable release channel. Unavailable settings are set to the default value.",
|
||||
OptType: OptTypeString,
|
||||
ExpertiseLevel: ExpertiseLevelExpert,
|
||||
ReleaseLevel: ReleaseLevelStable,
|
||||
|
|
|
@ -30,7 +30,7 @@ func init() {
|
|||
module,
|
||||
"config:template", // key space for configuration options registered
|
||||
&config.Option{
|
||||
Name: "Enable Template Subsystem",
|
||||
Name: "Template Subsystem",
|
||||
Key: "config:subsystems/template",
|
||||
Description: "This option enables the Template Subsystem [TEMPLATE]",
|
||||
OptType: config.OptTypeBool,
|
||||
|
|
Loading…
Add table
Reference in a new issue