flash-cli

command module
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2026 License: GPL-3.0 Imports: 9 Imported by: 0

README

flash-cli

Flash-cli is a tool to create a flashcard deck and view it from your command line. Inspired by the simplicity and power of taskwarrior with a plugin architecture for users to extend it how they wish.

Flashcards are stored in an SQLite database

Installation

  1. Download the Binary
    1. Go to the Releases page on GitHub.
    2. Under the latest version, look at the Assets section.
    3. Download the compressed file (.tar.gz or .zip) that matches your Operating System and System Architecture:
      • Mac (Apple Silicon): _Darwin_arm64
      • Mac (Intel): _Darwin_x86_64
      • Linux: _Linux_x86_64 or _Linux_arm64
      • Windows: _Windows_x86_64
  2. Extract and make it executable
    • Linux and macOS
      • For .tar.gz files:
        • tar -xvf flash-cli_*.tar.gz
      • For .zip files
        • unzip flash-cli_*.zip
    • Windows
      • right click and select Extract All and choose a folder
  3. Add to your system PATH
    • Linux and macOS
      • move the binary to /usr/local/bin sudo mv flash-cli /usr/local/bn
    • Windows
      1. Move the extracted .exe to a permanent folder ie. C:\Program Files\flash-cli
      2. Search Environment Variables in the Start Menu
      3. Edit the Path variable under User or System variables and addd the path to your folder
      4. Open a new PowerShell or Command Prompt window to use it

Usage

TODO

Default command

Note on using default command, all arguments passed will be read as filters. ie. a command like flash-cli group:foo will review all cards from the foo group. But trying to pass the review mode like flash-cli mode:shuffle will consider it as a custom filter. If you want to pass mods to the review command either set defaults or explicitly call flash-cli review mode:shuffle

Plugin creation

Plugin data is stored in a TEXT column as json, so they need to create their own indexes like below

-- run something like this on startup to index its own nested key CREATE INDEX IF NOT EXISTS idx_plugin1_difficulty ON %s (json_extract(ext_data, '$.plugin1.difficulty'));

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
examples
foo-updater command
internal
app
ext
Package shared contains shared data between the host and plugins.
Package shared contains shared data between the host and plugins.

Jump to

Keyboard shortcuts

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