Skip to content
/ cli-info Public

check for presence of your favorite CLI tools

Notifications You must be signed in to change notification settings

Lilja/cli-info

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cli-tools-info

asciicast

An overview of you cli tools, if they are installed and what version they are on.

Usage

  • pip install cli-tools-info

  • Create a python file that has the following contents

#!/usr/bin/env python
from cli_tools_info import (
    Tool,
    LONG,
    VERSION_WITH_THREE_NUMBERS_AND_DOTS,
    run,
)

tools = [
    Tool(name="nvim", args=LONG, grep_string=VERSION_WITH_THREE_NUMBERS_AND_DOTS),
]
run(tools)
  • Run your file, likely: ./file. You should get an output of the tool you are using depending on if it's installed or not.

Requirements

  • python>=3.8(runs asycncio)

run-options

  • tools: List[Tool]
  • headers: bool, whether to use headers in the table formatted list
  • table_fmt: Optional[str] = "simple", what table formatting to send to tabulate. See tablefmt in tabulate. Default simple.

Creator's cli-info file

link

Showcase of usage/workflow in vim

asciicast

About

check for presence of your favorite CLI tools

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages