org

package
v0.1.0-rc.13 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package org implements `w17ctl org` — list the organizations the logged-in user belongs to and choose the default one. The active org is a per-instance default in ~/.w17/auth.yaml; w17ctl threads it as the X-W17-Org selector so the console scopes requests to it (membership is validated server-side). See docs/specs/plugins/auth-cli-login-and-orgs.md.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cmd

type Cmd struct {
	List ListCmd `cmd:"" help:"List the organizations you belong to on the active console (--refresh re-fetches from the console)."`
	Use  UseCmd  `cmd:"" help:"Set the default organization (by slug) for the active console — used to scope subsequent commands."`
}

Cmd is the `w17ctl org` group.

type ListCmd

type ListCmd struct {
	Refresh bool `name:"refresh" help:"Re-fetch memberships from the console and update the local cache."`
}

ListCmd is `w17ctl org list`.

func (*ListCmd) Run

func (c *ListCmd) Run() error

type UseCmd

type UseCmd struct {
	Slug string `arg:"" help:"Organization slug to make the default."`
}

UseCmd is `w17ctl org use <slug>`.

func (*UseCmd) Run

func (c *UseCmd) Run() error

Jump to

Keyboard shortcuts

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