forgepb/mode.go

18 lines
401 B
Go
Raw Permalink Normal View History

2025-03-02 03:03:45 -06:00
// 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:
2025-03-03 23:49:51 -06:00
return "Release Mode (master branch)"
2025-03-02 03:03:45 -06:00
case ForgeMode_DEVEL:
2025-03-03 23:49:51 -06:00
return "Patch Mode (devel branch)"
2025-03-02 03:03:45 -06:00
case ForgeMode_USER:
2025-03-03 23:49:51 -06:00
return "Hack Mode (user branch)"
2025-03-02 03:03:45 -06:00
default:
return f.Config.Mode.String()
}
}