mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
feat(cli): add shell completions (#14341)
This commit is contained in:
@@ -42,7 +42,7 @@ func ProvisionerTypeValid[T ProvisionerType | string](pt T) error {
|
||||
type MinimalOrganization struct {
|
||||
ID uuid.UUID `table:"id" json:"id" validate:"required" format:"uuid"`
|
||||
Name string `table:"name,default_sort" json:"name"`
|
||||
DisplayName string `table:"display_name" json:"display_name"`
|
||||
DisplayName string `table:"display name" json:"display_name"`
|
||||
Icon string `table:"icon" json:"icon"`
|
||||
}
|
||||
|
||||
@@ -50,8 +50,8 @@ type MinimalOrganization struct {
|
||||
type Organization struct {
|
||||
MinimalOrganization `table:"m,recursive_inline"`
|
||||
Description string `table:"description" json:"description"`
|
||||
CreatedAt time.Time `table:"created_at" json:"created_at" validate:"required" format:"date-time"`
|
||||
UpdatedAt time.Time `table:"updated_at" json:"updated_at" validate:"required" format:"date-time"`
|
||||
CreatedAt time.Time `table:"created at" json:"created_at" validate:"required" format:"date-time"`
|
||||
UpdatedAt time.Time `table:"updated at" json:"updated_at" validate:"required" format:"date-time"`
|
||||
IsDefault bool `table:"default" json:"is_default" validate:"required"`
|
||||
}
|
||||
|
||||
@@ -67,7 +67,7 @@ type OrganizationMember struct {
|
||||
OrganizationID uuid.UUID `table:"organization id" json:"organization_id" format:"uuid"`
|
||||
CreatedAt time.Time `table:"created at" json:"created_at" format:"date-time"`
|
||||
UpdatedAt time.Time `table:"updated at" json:"updated_at" format:"date-time"`
|
||||
Roles []SlimRole `table:"organization_roles" json:"roles"`
|
||||
Roles []SlimRole `table:"organization roles" json:"roles"`
|
||||
}
|
||||
|
||||
type OrganizationMemberWithUserData struct {
|
||||
|
||||
Reference in New Issue
Block a user