Rebrand pkg

This commit is contained in:
Ralf Haferkamp
2025-01-20 10:59:08 +01:00
parent 6fb15725d6
commit e07f0154bb
18 changed files with 52 additions and 52 deletions
+5 -5
View File
@@ -2,7 +2,7 @@ package flags
// OverrideDefaultString checks whether the default value of v is the zero value, if so, ensure the flag has a correct
// value by providing one. A value different than zero would mean that it was read from a config file either from an
// service or from a higher source (i.e: ocis command).
// service or from a higher source (i.e: opencloud command).
func OverrideDefaultString(v, def string) string {
if v != "" {
return v
@@ -13,7 +13,7 @@ func OverrideDefaultString(v, def string) string {
// OverrideDefaultBool checks whether the default value of v is the zero value, if so, ensure the flag has a correct
// value by providing one. A value different than zero would mean that it was read from a config file either from an
// service or from a higher source (i.e: ocis command).
// service or from a higher source (i.e: opencloud command).
func OverrideDefaultBool(v, def bool) bool {
if v {
return v
@@ -24,7 +24,7 @@ func OverrideDefaultBool(v, def bool) bool {
// OverrideDefaultInt checks whether the default value of v is the zero value, if so, ensure the flag has a correct
// value by providing one. A value different than zero would mean that it was read from a config file either from an
// service or from a higher source (i.e: ocis command).
// service or from a higher source (i.e: opencloud command).
func OverrideDefaultInt(v, def int) int {
if v != 0 {
return v
@@ -35,7 +35,7 @@ func OverrideDefaultInt(v, def int) int {
// OverrideDefaultInt64 checks whether the default value of v is the zero value, if so, ensure the flag has a correct
// value by providing one. A value different than zero would mean that it was read from a config file either from an
// service or from a higher source (i.e: ocis command).
// service or from a higher source (i.e: opencloud command).
func OverrideDefaultInt64(v, def int64) int64 {
if v != 0 {
return v
@@ -46,7 +46,7 @@ func OverrideDefaultInt64(v, def int64) int64 {
// OverrideDefaultUint64 checks whether the default value of v is the zero value, if so, ensure the flag has a correct
// value by providing one. A value different than zero would mean that it was read from a config file either from an
// service or from a higher source (i.e: ocis command).
// service or from a higher source (i.e: opencloud command).
func OverrideDefaultUint64(v, def uint64) uint64 {
if v != 0 {
return v