cli

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2026 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

templ: version: v0.3.1001

Package cli implements the browser side of the `stackr` CLI login flow.

gh-style loopback code exchange: the CLI opens the browser at GET /cli/authorize (behind the web session), the user approves, and the server mints an API key but hands the browser only a one-time *code*. The CLI then exchanges that code for the raw key over a direct request to POST /cli/exchange. The raw key never touches the browser (history sync would otherwise carry it off the machine).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHandler

func NewHandler(store repo.Store) *handler

NewHandler creates the CLI-login handler. Codes live in memory only; a pending login that outlives a restart just fails and the user retries.

Types

This section is empty.

Jump to

Keyboard shortcuts

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