xbar

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2022 License: MIT Imports: 16 Imported by: 0

README

Graphical User Interface

An xbar plugin is available which provides a graphical interface for visualizing and switching between Temporal contexts on macOS.

tctx xbar integration

Installation

Note: This process may be streamlined by contributing the plugin to https://github.com/matryer/xbar-plugins in the future.

  1. Install xbar: https://github.com/matryer/xbar#install
  2. Copy tctx.1m.sh into your xbar plugins directory:
    cp ./internal/xbar/tctx.1m.sh $HOME/Library/Application\ Support/xbar/plugins/tctx.1m.sh
    
  3. Reload xbar

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ShowClusterFlag = cli.BoolFlag{
		Name:    "show-cluster",
		Usage:   "display Temporal cluster name in menu bar",
		EnvVars: []string{"SHOW_CLUSTER"},
	}
	ShowNamespaceFlag = cli.BoolFlag{
		Name:    "show-namespace",
		Usage:   "display Temporal namespace in menu bar",
		EnvVars: []string{"SHOW_NAMESPACE"},
	}
)

Functions

func Render

func Render(ctx context.Context, opts *Options) error

Types

type Options

type Options struct {
	*config.Config
	TctxPath, TctlPath         string
	ShowCluster, ShowNamespace bool
}

Jump to

Keyboard shortcuts

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