Files
steampipe/pkg/steampipeconfig/cloud_workspace.go
kaidaguerre 1e3db26e8f Add support for workspace profiles - parse from config and select using --workspace arg. Closes #2510
Add support for implicit workspace. Closes #2514
If snapshot-location is a local file path, copy snapshot instead of uploading. Closes #2550
Do not show snapshot upload status if --progress=false. Closes #2517
Replace --workspace with --snapshot-location. Closes #2512
2022-10-19 13:02:24 +01:00

10 lines
277 B
Go

package steampipeconfig
import "strings"
// IsCloudWorkspaceIdentifier returns whether name is a cloud workspace identifier
// of the form: {identity_handle}/{workspace_handle},
func IsCloudWorkspaceIdentifier(name string) bool {
return len(strings.Split(name, "/")) == 2
}