18 lines
413 B
Go
18 lines
413 B
Go
// Copyright 1994-2025 WIT.COM Inc Licensed GPL 3.0
|
|
|
|
package forgepb
|
|
|
|
// TODO: implement i18n with the protobuf's
|
|
func (f *Forge) GetMode() string {
|
|
switch f.Config.Mode {
|
|
case ForgeMode_MASTER:
|
|
return "Release Mode (master branches)"
|
|
case ForgeMode_DEVEL:
|
|
return "Devel/Patch Mode (devel branches)"
|
|
case ForgeMode_USER:
|
|
return "Hack Mode (user branches)"
|
|
default:
|
|
return f.Config.Mode.String()
|
|
}
|
|
}
|