Documentation ¶
Index ¶
- Variables
- func ArchiveWorkspace(ctx context.Context, workspaceId string) (string, error)
- func CreateWorkspace(ctx context.Context, name string, customKey string) (string, error)
- func DeleteWorkspace(ctx context.Context, workspaceId string) (string, error)
- func GetWorkspaceId(cmd *cobra.Command) (string, error)
- func GetWorkspacePath(ctx context.Context, workspaceId string) (string, error)
- func ListWorkspaces(ctx context.Context, all bool, archived bool) (*table.Table, error)
- func NewCreateWorkspaceForm(ctx context.Context, workspaceId string, workspaceName string) (*huh.Form, error)
- func NewSelectWorkspaceForm(ctx context.Context, all bool, archived bool) (*huh.Form, error)
- func NewUpdateWorkspaceForm(ctx context.Context, workspaceId string, workspaceName string) (*huh.Form, error)
- func NewWorkspaceIdAndNameFormGroup(id, name string) *huh.Group
- func UnarchiveWorkspace(ctx context.Context, workspaceId string) (string, error)
- func UpdateWorkspace(ctx context.Context, workspaceId string, newWorkspaceId string, ...) error
- type WorkspaceConfig
Constants ¶
This section is empty.
Variables ¶
View Source
var ( WorkspaceId string WorkspaceName string )
Functions ¶
func ArchiveWorkspace ¶
func CreateWorkspace ¶
CreateWorkspace creates a new workspace with the given name in the data directory. If the workspace already exists, a directory with a name appended with a number will be created.
func DeleteWorkspace ¶
func GetWorkspacePath ¶
func ListWorkspaces ¶
func NewCreateWorkspaceForm ¶
func NewCreateWorkspaceForm(ctx context.Context, workspaceId string, workspaceName string) (*huh.Form, error)
NewCreateWorkspaceForm creates a new form for creating a workspace. The context is used to get the configuration. Which is used to determine if the form should be in accessible mode or not.
func NewSelectWorkspaceForm ¶
func NewUpdateWorkspaceForm ¶
func NewUpdateWorkspaceForm(ctx context.Context, workspaceId string, workspaceName string) (*huh.Form, error)
NewCreateWorkspaceForm creates a new form for creating a workspace. The context is used to get the configuration. Which is used to determine if the form should be in accessible mode or not.
func UnarchiveWorkspace ¶
Types ¶
type WorkspaceConfig ¶
WorkspaceConfig holds the configuration for a workspace.
func GetWorkspaceConfig ¶
func GetWorkspaceConfig(ctx context.Context, workspaceId string) (*WorkspaceConfig, error)
Click to show internal directories.
Click to hide internal directories.