cmdaccount

package
v1.47.2 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2026 License: MIT Imports: 15 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package cmdaccount logs the CLI in and out and empties the account, through the API.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Login

func Login(cobra *cobra.Command, args []string) error

Login logs the CLI in like gh auth login: it asks the server a code, shows it with the web app's page where the account allows it, polls until then and keeps the server and the token in the user's config folder. Without <url> it logs in again to the server of the session file.

func Logout

func Logout(cobra *cobra.Command, args []string) error

Logout ends the CLI's session on the server and removes its token from disk, keeping the server for the next login; a TIDE_SESSION one on the server only, the file holds another. A token the server no longer knows is removed all the same.

func Purge

func Purge(cobra *cobra.Command, args []string) error

Purge deletes for good every note, folder, tag and image of the account logged in, once its name (GET /api/me) is typed, through DELETE /api/me/data.

func Whoami

func Whoami(cobra *cobra.Command, args []string) error

Whoami prints the account of the CLI's session and its server, or with --json the account (GET /api/me) with its server as "server".

Types

This section is empty.

Jump to

Keyboard shortcuts

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