refreshcmd

package
v1.1.67 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package refreshcmd implements `gro refresh` — the top-level cache control surface per cli-common/docs/working-with-state.md §4.6.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCommand

func NewCommand() *cobra.Command

NewCommand registers `gro refresh` with the production client factory.

Types

type ClientFactory

type ClientFactory func(ctx context.Context) (DriveLister, error)

ClientFactory constructs a DriveLister for the refresh path. The --status branch never invokes it; the invariant test in refresh_test.go pins that.

type DriveLister

type DriveLister interface {
	ListSharedDrives(ctx context.Context, pageSize int64) ([]*drive.SharedDrive, error)
}

DriveLister is the narrow seam refreshcmd needs from a Drive client — only ListSharedDrives. Matches the signature in internal/cmd/drive/output.go's DriveClient interface so the production factory satisfies it directly.

Jump to

Keyboard shortcuts

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