org

package
v1.20.0 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2026 License: MIT Imports: 7 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package org holds the commands about the organization itself.

Index

Constants

View Source
const PlanPage = "https://my.cubepath.com/organization/plan"

PlanPage is the dashboard page where the plan is bought, changed, cancelled or resumed. cubecli only reads the plan.

Variables

This section is empty.

Functions

func Day

func Day(s *string) string

Day shortens an ISO datetime to its date ("2026-11-01T00:00:00" -> "2026-11-01").

func NewCmd

func NewCmd() *cobra.Command

NewCmd returns the `org` command group.

Types

type AccountPlan

type AccountPlan struct {
	Code              string  `json:"code"`
	Name              string  `json:"name"`
	Status            string  `json:"status"`
	RenewsAt          *string `json:"renews_at"`
	CancelAtPeriodEnd bool    `json:"cancel_at_period_end"`
}

AccountPlan is the `plan` block of GET /account/me (null = Free).

func (*AccountPlan) Summary

func (a *AccountPlan) Summary() string

Summary renders the plan in one cell: "Free", "Pro, renews 2026-11-01", "Pro (past_due), renews 2026-11-01" or "Pro, ends 2026-11-01".

type USD

type USD struct {
	Value float64
	Set   bool
}

USD is an amount the API sends either as a JSON number or as a decimal string.

func (USD) String

func (u USD) String() string

String renders the amount as $49.00, or "-" when absent.

func (*USD) UnmarshalJSON

func (u *USD) UnmarshalJSON(b []byte) error

Jump to

Keyboard shortcuts

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