GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — python-ticket/plugins at master · sjaandi-project/python-ticket

Expand file tree

/

plugins

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
/

plugins

/
Copy path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
README.md
README.md
 
 
ticket-archive
ticket-archive
 
 
ticket-ls
ticket-ls
 
 
ticket-migrate-beads
ticket-migrate-beads
 
 
ticket-open
ticket-open
 
 
ticket-query
ticket-query
 
 

README.md

Outline

Ticket Plugins

Official plugins that extend tk with additional commands.

Writing Plugins

Plugins are executables named tk-<cmd> or ticket-<cmd> in $PATH. This repo uses the ticket- prefix for consistency.

Conventional metadata in the first 10 lines, read by the packaging scripts:

#!/usr/bin/env bash
# tk-plugin: sync tickets with GitHub issues
# tk-plugin-version: 1.0.0

set -euo pipefail
# implementation here

Environment Variables

Plugins receive:

  • TICKETS_DIR: absolute path to the .tickets/ directory when tk found one; otherwise unset, or whatever value the caller had set
  • TK_SCRIPT: absolute path to the tk script

Use $TK_SCRIPT super <cmd> to call built-ins without recursing into plugins:

#!/usr/bin/env bash
# tk-plugin: wrapper that creates tickets with defaults
# tk-plugin-version: 1.0.0

"$TK_SCRIPT" super create "$@" --type task --priority 1

Installing a Plugin

Copy or link the plugin into a directory on your PATH, for example ~/.local/bin:

ln -s "$PWD/plugins/ticket-open" ~/.local/bin/ticket-open
tk open web-3k9f

Adding a Plugin

  1. Create plugins/ticket-<name> with the metadata comments shown above.
  2. chmod +x plugins/ticket-<name>
  3. Pick a name that is not a built-in command, or it will replace the built-in (tk super <cmd> still reaches the built-in).
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.