tome-cli

command module
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2024 License: MIT Imports: 1 Imported by: 0

README

tome-cli

A rewrite of sub and tome and my fork of tome but with a different internal implementation in order to support:

  1. Improved auto-completion
  2. Improved usage/help outputs
  3. Faster development
  4. Testable interfaces

Interface

export TOME_ROOT=examples
tome-cli exec path to file
tome-cli help path to <TAB>
tome-cli completion fish | source
tome-cli alias --write kit

# shorthand syntax via bash wrapper script
tome-cli --executable kit alias --output ~/bin/kit

# further uses of kit script have embedded values for TOME_ROOT and TOME_EXECUTABLE
kit completion fish | source
kit path to file
kit pat<TAB>


# Print out completions for zsh | fish | bash
tome completion zsh

Capabilities

	// The *Run functions are executed in the following order:
	//   * PersistentPreRun()
	//   * PreRun()
	//   * Run()
	//   * PostRun()
	//   * PersistentPostRun()
  • Add level and k/v style logging

Non Features

  • Does not support sourcing scripts into shell environment because it adds implementation complexity for other core commands

Alternate names

kit edc or eds (everyday scripting) grimoire

Documentation

Overview

Copyright © 2024 Zander Hill <zander@xargs.io>

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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