New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

github.com/deadsy/go-cli

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/deadsy/go-cli

  • v0.0.0-20230301174137-5c174cc4ca7e
  • Source
  • Go
  • Socket score

Version published
Created
Source

Go Report Card GoDoc

go-cli

A Go based line editor and command line interface.

The line editing code is a port of the C based linenoise library.

See: http://github.com/antirez/linenoise

The line editor can be used standalone. The CLI makes use of the line editor.

Line Editing Features

  • single line editing
  • multiline editing
  • input from files/pipes
  • input from unsupported terminals
  • history
  • completions
  • hints
  • line buffer initialization: Set an initial buffer string for editing.
  • hot keys: Set a special hot key for exiting line editing.
  • loop functions: Call a function in a loop until an exit key is pressed.

CLI Features

  • hierarchical menus
  • command tab completion
  • command history
  • context sensitive help
  • command editing

Examples

./examples/line/main.go

Matches the example code in the C version of the linenoise library.

./examples/cli/main.go

Implements an example of a heirarchical command line interface.

FAQs

Package last updated on 01 Mar 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc