• Stars
    star
    373
  • Rank 114,198 (Top 3 %)
  • Language
    Go
  • License
    MIT License
  • Created over 6 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

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

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 install:

go install github.com/Rican7/define@latest

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:

More Repositories

1

retry

A simple, stateless, functional mechanism to perform actions repetitively until successful.
Go
464
star
2

incoming

Transform loose and complex input into consistent, strongly-typed data structures
PHP
222
star
3

facebook-birthday-thanks

A quick Python script for thanking people who wish you a "happy birthday" on your Facebook wall
Python
58
star
4

conjson

(conventional, consistent, conformative) JSON - A simple, functional, no-tags-required mechanism to handle and transform JSON representations of values, consistently.
Go
52
star
5

MediaWiki-MarkdownExtraParser

A quick MediaWiki hook for using a Markdown parser
PHP
35
star
6

mathematician

A PHP mathematics library for simpler, more reliable math operations... even on big numbers.
PHP
31
star
7

php-doc-modded

An updated, modified version of the original "PDV" (phpDocumentor for Vim).
Vim Script
24
star
8

lieut

An opinionated, feature-limited, no external dependency, "micro-framework" for building command line applications in Go.
Go
20
star
9

dotfiles

My shell configuration and scripts. My "dotfiles". ... Over a decade of tuning my environments. ⌚😮🤯
Vim Script
20
star
10

Paulus

A PHP micro-framework for creating RESTful services
PHP
17
star
11

mediatype

An [Internet] Media Type and MIME string parser and modeler for Go
Go
9
star
12

commonlog

A common logger interface with multiple adapters for Go
Go
2
star
13

OS-Simulation-Project

A programming project for the Plymouth State University Operating Systems class
Java
2
star
14

vagrant-envs

A collection of my personal Vagrant environment setups
Puppet
1
star
15

psx-emu-conf

PlayStation Emulation Configurator
Go
1
star
16

blennd-blog

blennd's theme
PHP
1
star
17

es-theme-handheld-simple

A theme for EmulationStation, specifically designed for handheld devices.
Makefile
1
star
18

rican7.github.io

My personal website
Astro
1
star
19

plymouth-webapp

Plymouth State University Webapp
PHP
1
star
20

blennd-blog-mobile

blennd's mobile theme
1
star
21

Software-Engineering

An android app/game project for Plymouth State's Software Engineering Class (Fall 2011)
Java
1
star