Documentation ¶ Index ¶ func GetClient(cmd *cli.Command) (*apiclient.ApiClient, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func GetClient ¶ func GetClient(cmd *cli.Command) (*apiclient.ApiClient, error) GetClient returns an API client that works in both desktop and agent contexts. It checks if an agent is running and if so, uses the agent's connection info. Otherwise, it falls back to desktop configuration. Types ¶ This section is empty. Source Files ¶ View all Source files client.go Click to show internal directories. Click to hide internal directories.