cmdaccount

package
v1.28.0 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2026 License: MIT Imports: 10 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 asks the account's name and password and keeps the server and the session in the user's config folder, or with --print-token prints a session of its own, for TIDE_SESSION, and keeps nothing.

func Logout

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

Logout ends the CLI's session, on the server and on disk; a TIDE_SESSION one on the server only, the file is another. A session the server no longer knows is removed from disk 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.

Types

This section is empty.

Jump to

Keyboard shortcuts

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