csfs

package
v0.0.0-...-152af08 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2023 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	// contains filtered or unexported fields
}

App is the main application for csfs. It manages the user interaction and the sync operations.

func NewApp

func NewApp() *App

NewApp creates a new App, with a spinner.

func (*App) Run

func (a *App) Run(
	ctx context.Context, opts AppOptions,
) (err error)

Run runs the application, it will have the user pick a codespace if none is provided. If the workspace cannot be computed from the codespace (rare and unexpected) it will return an error.

type AppOptions

type AppOptions struct {
	Codespace   string
	Workspace   string
	Exclude     []string
	DeleteFiles bool
	Watch       []string
}

type Codespace

type Codespace struct {
	Name        string `json:"name"`
	DisplayName string `json:"displayName"`
	Repository  string `json:"repository"`
	State       string `json:"state"`
}

func GetCodespace

func GetCodespace(ctx context.Context, codespace string) (Codespace, error)

func ListCodespaces

func ListCodespaces(ctx context.Context) ([]Codespace, error)

func (Codespace) Active

func (c Codespace) Active() bool

func (Codespace) Workspace

func (c Codespace) Workspace() string

Jump to

Keyboard shortcuts

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