commands

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2026 License: MIT Imports: 26 Imported by: 0

Documentation

Overview

Package commands wires the cobra command tree. root.go owns the global flags, the shared LinkedIn Voyager client factory (borrowed-session cookie auth + ban-safety pacing), and the single render() path used by every command. The tree is built fresh per NewRootCmd() call so tests never leak flag state across cases.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExpandAliases

func ExpandAliases(args []string) []string

ExpandAliases rewrites os.Args before cobra parses them: if the first argument names a user-defined alias AND is not a real built-in command, it is replaced by the alias's expansion. Built-ins always win, so an alias can never shadow `auth`, `mail`, etc.

func NewRootCmd

func NewRootCmd() *cobra.Command

NewRootCmd assembles the full command tree.

Types

type Credentials

type Credentials struct {
	LiAt       string `json:"li_at"`
	JSessionID string `json:"JSESSIONID"`
}

Credentials is the borrowed-session cookie pair. It is stored in the OS keyring as a single JSON blob under the profile key (the fleet-standard auth.Store persists one string per profile), never in the config file. JSESSIONID keeps its surrounding quotes.

Jump to

Keyboard shortcuts

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