user

package
v2.8.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 15, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AllowedMailNotifications = map[string]struct{}{
	"all":            {},
	"only_my_events": {},
	"only_assigned":  {},
	"only_owner":     {},
	"none":           {},
}

AllowedMailNotifications lists the Redmine mail notification preference values. The wiki documents only "only_my_events" and "none"; the full set comes from app/models/user.rb in Redmine.

Functions

func CompleteMailNotification added in v2.6.0

func CompleteMailNotification(_ *cobra.Command, _ []string, _ string) ([]string, cobra.ShellCompDirective)

CompleteMailNotification provides shell completion for --mail-notification.

func FormatCustomFieldValues added in v2.6.0

func FormatCustomFieldValues(items []models.CustomFieldValue) string

FormatCustomFieldValues renders "Name: Value; ..." for custom field arrays. Exported so the my-account command group can reuse it.

func NewCmdUser

func NewCmdUser(f *cmdutil.Factory) *cobra.Command

NewCmdUser creates the parent users command.

func UserStatusName added in v2.6.0

func UserStatusName(status int) string

UserStatusName renders a numeric Redmine user status as a human label.

func ValidateMailNotification added in v2.6.0

func ValidateMailNotification(value string) error

ValidateMailNotification accepts the empty string (meaning "unset") and any value from AllowedMailNotifications. Used by both the users and my-account command groups to fail fast before hitting the API.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL