All Projects → Rican7 → Define

Rican7 / Define

Licence: mit
A command-line dictionary (thesaurus) app, with access to multiple sources, written in Go.

Programming Languages

go
31211 projects - #10 most used programming language
golang
3204 projects
language
365 projects

Projects that are alternatives of or similar to Define

Ff
Find files (ff) by name, fast!
Stars: ✭ 257 (-13.76%)
Mutual labels:  command-line-tool, cli, command-line
Zoxide
A smarter cd command. Supports all major shells.
Stars: ✭ 4,422 (+1383.89%)
Mutual labels:  command-line-tool, cli, command-line
Git Tidy
Tidy up stale git branches.
Stars: ✭ 137 (-54.03%)
Mutual labels:  command-line-tool, cli, command-line
Dynein
DynamoDB CLI written in Rust.
Stars: ✭ 126 (-57.72%)
Mutual labels:  command-line-tool, cli, command-line
Gitlab Cli
Create a merge request from command line in gitlab
Stars: ✭ 224 (-24.83%)
Mutual labels:  command-line-tool, cli, command-line
Typin
Declarative framework for interactive CLI applications
Stars: ✭ 126 (-57.72%)
Mutual labels:  command-line-tool, cli, command-line
You Dont Need Gui
Stop relying on GUI; CLI **ROCKS**
Stars: ✭ 4,766 (+1499.33%)
Mutual labels:  command-line-tool, cli, command-line
Tooling
Advancing Node.js as a framework for writing great tools
Stars: ✭ 98 (-67.11%)
Mutual labels:  command-line-tool, cli, command-line
Klog
A plain-text file format and command line tool for time tracking
Stars: ✭ 222 (-25.5%)
Mutual labels:  command-line-tool, cli, command-line
Dry Cli
General purpose Command Line Interface (CLI) framework for Ruby
Stars: ✭ 210 (-29.53%)
Mutual labels:  command-line-tool, cli, command-line
Awesome Cli
A curated list of awesome resources for building immersive CLI experiences.
Stars: ✭ 104 (-65.1%)
Mutual labels:  command-line-tool, cli, command-line
Websocat
Command-line client for WebSockets, like netcat (or curl) for ws:// with advanced socat-like functions
Stars: ✭ 3,477 (+1066.78%)
Mutual labels:  command-line-tool, cli, command-line
Csv2db
The CSV to database command line loader
Stars: ✭ 102 (-65.77%)
Mutual labels:  command-line-tool, cli, command-line
Check It Out
A command line interface for Git Checkout. See branches available for checkout.
Stars: ✭ 127 (-57.38%)
Mutual labels:  command-line-tool, cli, command-line
Ask Cli
Alexa Skills Kit Command Line Interface
Stars: ✭ 100 (-66.44%)
Mutual labels:  command-line-tool, cli, command-line
Brotab
Control your browser's tabs from the command line
Stars: ✭ 137 (-54.03%)
Mutual labels:  command-line-tool, cli, command-line
Forge Node App
🛠📦🎉 Generate Node.js boilerplate with optional libraries & tools
Stars: ✭ 90 (-69.8%)
Mutual labels:  command-line-tool, cli, command-line
Terminal layout
The project help you to quickly build layouts in terminal,cross-platform(一个跨平台的命令行ui布局工具)
Stars: ✭ 98 (-67.11%)
Mutual labels:  command-line-tool, cli, command-line
Miniserve
🌟 For when you really just want to serve some files over HTTP right now!
Stars: ✭ 2,894 (+871.14%)
Mutual labels:  command-line-tool, cli, command-line
Vocabs
📚 A lightweight online dictionary integration to the command line. No browsers. No paperbacks.
Stars: ✭ 226 (-24.16%)
Mutual labels:  command-line-tool, cli, dictionary

define

Build Status Go Report Card Latest Stable Version

A command-line dictionary (thesaurus) app, with access to multiple sources, written in Go.

screen shot 2018-03-21 at 8 51 54 pm

Install

Pre-compiled binaries are available on the releases page.

If you have a working Go environment, you can install via go get:

go get github.com/Rican7/define

Configuration

The define app allows configuration through multiple means. You can either set configuration via:

  • Command line flags (good for one-off use)
  • A configuration file (good for your "dotfiles")
  • Environment variables (especially useful for API keys)

Command line flags

The list of command line flags is easily discovered via the --help flag. Any passed command line flag will take precedence over any other configuration mechanism.

Configuration file

A configuration file can be stored at ~/.define.conf.json and define will automatically load the values specified there.

To print the default values of the configuration, simply use the --print-config flag. This can also be used to initialize a configuration file, for example:

define --print-config > ~/.define.conf.json

Environment variables

Some configuration values can also be specified via environment variables. This is especially useful for API keys of different sources.

The following environment variables are read by define's sources:

  • MERRIAM_WEBSTER_DICTIONARY_APP_KEY
  • OXFORD_DICTIONARY_APP_ID
  • OXFORD_DICTIONARY_APP_KEY

Sources

The define app has access to multiple sources, however some of them require user-specific API keys, due to usage limitations.

A preferred source can be specified with the command line flag --preferred-source="..." or in a configuration file. For more information, see the section on Configuration.

Obtaining API keys

The following are links to register for API keys for the different sources:

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].