Documentation ¶
Index ¶
- Constants
- Variables
- func NewRootCmd(app *App) *cobra.Command
- type App
- func (a *App) Copy(ctx context.Context, args []string, opts cpOptions) error
- func (a *App) Create(ctx context.Context, opts createOptions) error
- func (a *App) Delete(ctx context.Context, opts deleteOptions) (err error)
- func (a *App) Edit(ctx context.Context, opts editOptions) error
- func (a *App) ForwardPorts(ctx context.Context, codespaceName string, ports []string) (err error)
- func (a *App) Jupyter(ctx context.Context, codespaceName string) (err error)
- func (a *App) List(ctx context.Context, opts *listOptions, exporter cmdutil.Exporter) error
- func (a *App) ListPorts(ctx context.Context, codespaceName string, exporter cmdutil.Exporter) (err error)
- func (a *App) Logs(ctx context.Context, codespaceName string, follow bool) (err error)
- func (a *App) Rebuild(ctx context.Context, codespaceName string, full bool) (err error)
- func (a *App) SSH(ctx context.Context, sshArgs []string, opts sshOptions) (err error)
- func (a *App) Select(ctx context.Context, name string, opts selectOptions) (err error)
- func (a *App) StartProgressIndicatorWithLabel(s string)
- func (a *App) StopCodespace(ctx context.Context, opts *stopOptions) error
- func (a *App) StopProgressIndicator()
- func (a *App) UpdatePortVisibility(ctx context.Context, codespaceName string, args []string) (err error)
- func (a *App) VSCode(ctx context.Context, codespaceName string, useInsiders bool, useWeb bool) error
- type ErrUpdatingPortVisibility
- type NullableDuration
Constants ¶
View Source
const (
DEVCONTAINER_PROMPT_DEFAULT = "Default Codespaces configuration"
)
Variables ¶
View Source
var (
DEFAULT_DEVCONTAINER_DEFINITIONS = []string{".devcontainer.json", ".devcontainer/devcontainer.json"}
)
View Source
var ErrTooManyArgs = errors.New("the command accepts no arguments")
Functions ¶
func NewRootCmd ¶
Types ¶
type App ¶
type App struct {
// contains filtered or unexported fields
}
func (*App) Copy ¶
Copy copies files between the local and remote file systems. The mechanics are similar to 'ssh' but using 'scp'.
func (*App) ForwardPorts ¶
func (*App) ListPorts ¶
func (a *App) ListPorts(ctx context.Context, codespaceName string, exporter cmdutil.Exporter) (err error)
ListPorts lists known ports in a codespace.
func (*App) Select ¶
Hidden codespace `select` command allows to reuse existing codespace selection dialog by external GH CLI extensions. By default output selected codespace name into `stdout`. Pass `--file`(`-f`) flag along with a file path to output selected codespace name into a file instead.
## Examples
With `stdout` output:
```shell
gh codespace select
```
With `into-a-file` output:
```shell
gh codespace select --file /tmp/selected_codespace.txt
```
func (*App) StartProgressIndicatorWithLabel ¶
StartProgressIndicatorWithLabel starts a progress indicator with a message.
func (*App) StopCodespace ¶
func (*App) StopProgressIndicator ¶
func (a *App) StopProgressIndicator()
StopProgressIndicator stops the progress indicator.
func (*App) UpdatePortVisibility ¶
type ErrUpdatingPortVisibility ¶
type ErrUpdatingPortVisibility struct {
// contains filtered or unexported fields
}
func (*ErrUpdatingPortVisibility) Error ¶
func (e *ErrUpdatingPortVisibility) Error() string
func (*ErrUpdatingPortVisibility) Unwrap ¶
func (e *ErrUpdatingPortVisibility) Unwrap() error
type NullableDuration ¶
func (*NullableDuration) Minutes ¶
func (d *NullableDuration) Minutes() *int
func (*NullableDuration) Set ¶
func (d *NullableDuration) Set(str string) error
func (*NullableDuration) String ¶
func (d *NullableDuration) String() string
func (*NullableDuration) Type ¶
func (d *NullableDuration) Type() string
Click to show internal directories.
Click to hide internal directories.