workspaceutils

package
v0.1.0-rc.3 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2025 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Module = fx.Provide(New)

Module provides a new WorkspaceUtils.

Functions

This section is empty.

Types

type Params

type Params struct {
	fx.In

	IdeGateway ideclient.Gateway
	Logger     *zap.SugaredLogger
	FS         fs.UlspFS
	Executor   executor.Executor
}

Params are the parameters required to create a new WorkspaceUtils.

type WorkspaceUtils

type WorkspaceUtils interface {
	GetWorkspaceRoot(ctx context.Context, workspaceFolders []protocol.WorkspaceFolder) (string, error)
	GetRepoName(ctx context.Context, dir string) (entity.MonorepoName, error)
	GetEnv(ctx context.Context, dir string) ([]string, error)
}

WorkspaceUtils is a utility interface for getting workspace related information.

func New

func New(p Params) WorkspaceUtils

New creates a new WorkspaceUtils.

Jump to

Keyboard shortcuts

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