cmdutil

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClientFromCmd

func ClientFromCmd(cmd *cobra.Command) dune.DuneClient

ClientFromCmd extracts the DuneClient stored in the command's context.

func SetClient

func SetClient(cmd *cobra.Command, client dune.DuneClient)

SetClient stores a DuneClient in the command's context.

func SetSimClient added in v0.1.6

func SetSimClient(cmd *cobra.Command, client any)

SetSimClient stores a Sim API client in the command's context. The value is stored as any to avoid a circular import with cmd/sim.

func SetStartTime added in v0.1.1

func SetStartTime(cmd *cobra.Command, t time.Time)

SetStartTime stores the command start time in the command's context.

func SetTracker added in v0.1.1

func SetTracker(cmd *cobra.Command, t *tracking.Tracker)

SetTracker stores a Tracker in the command's context.

func SimClientFromCmd added in v0.1.6

func SimClientFromCmd(cmd *cobra.Command) any

SimClientFromCmd extracts the Sim API client stored in the command's context. Callers should type-assert the result to *sim.SimClient.

func StartTimeFromCmd added in v0.1.1

func StartTimeFromCmd(cmd *cobra.Command) time.Time

StartTimeFromCmd extracts the command start time from the command's context.

func TrackerFromCmd added in v0.1.1

func TrackerFromCmd(cmd *cobra.Command) *tracking.Tracker

TrackerFromCmd extracts the Tracker stored in the command's context.

Types

This section is empty.

Jump to

Keyboard shortcuts

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