* Add generic read/update/delete commands This adds three generic commands that use the resource prefix to determine the subcommand to run and pass through args over to that subcommand. Since this occurs very early on and to avoid loading essentially every internal resource package, I moved subtype definitions to globals. This replaces #3967 Co-authored-by: Johan Brandhorst-Satzkorn <johan.brandhorst@gmail.com> * De-duplicate Subtype code (#4031) Co-authored-by: Timothy Messier <tim.messier@gmail.com> --------- Co-authored-by: Johan Brandhorst-Satzkorn <johan.brandhorst@gmail.com> Co-authored-by: Timothy Messier <tim.messier@gmail.com>
17 lines
327 B
Go
17 lines
327 B
Go
// Copyright (c) HashiCorp, Inc.
|
|
// SPDX-License-Identifier: BUSL-1.1
|
|
|
|
package globals
|
|
|
|
// Subtype variables identify a boundary resource subtype.
|
|
type Subtype string
|
|
|
|
const (
|
|
UnknownSubtype Subtype = "unknown"
|
|
)
|
|
|
|
// String returns the string representation of a Subtype
|
|
func (t Subtype) String() string {
|
|
return string(t)
|
|
}
|