Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
214 lines (187 sloc) 3.17 KB

turtle

CLI for the turtle library πŸ˜„ 🐒 πŸ’»

Installation

$ go get github.com/hackebrot/turtle/cmd/turtle

Usage

Print the emoji with the specified name identifier

Usage:
  turtle [flags]
  turtle [command]

Available Commands:
  category    Print all emojis of the category
  help        Help about any command
  keyword     Print all emojis with the keyword
  list        Print a list of values from the turtle library
  search      Print emojis with a name that contains the search string
  version     Print the version number of turtle

Flags:
  -h, --help            help for turtle
  -i, --indent string   indent for JSON output
  -p, --prefix string   prefix for JSON output

Use "turtle [command] --help" for more information about a command.

Emoji lookup

$ turtle -i "  " rocket
{
  "name": "rocket",
  "category": "travel_and_places",
  "char": "πŸš€",
  "keywords": [
    "launch",
    "ship",
    "staffmode",
    "NASA",
    "outer space",
    "outer_space",
    "fly"
  ]
}

Search

$ turtle -i "  " search computer
[
  {
    "name": "computer",
    "category": "objects",
    "char": "πŸ’»",
    "keywords": [
      "technology",
      "laptop",
      "screen",
      "display",
      "monitor"
    ]
  },
  {
    "name": "computer_mouse",
    "category": "objects",
    "char": "πŸ–±",
    "keywords": [
      "click"
    ]
  },
  {
    "name": "desktop_computer",
    "category": "objects",
    "char": "πŸ–₯",
    "keywords": [
      "technology",
      "computing",
      "screen"
    ]
  }
]

Category

$ turtle -i "  " category travel_and_places
[
  {
    "name": "aerial_tramway",
    "category": "travel_and_places",
    "char": "🚑",
    "keywords": [
      "transportation",
      "vehicle",
      "ski"
    ]
  },
  {
    "name": "airplane",
    "category": "travel_and_places",
    "char": "✈️",
    "keywords": [
      "vehicle",
      "transportation",
      "flight",
      "fly"
    ]
  },
  {
    "name": "ambulance",
    "category": "travel_and_places",
    "char": "πŸš‘",
    "keywords": [
      "health",
      "911",
      "hospital"
    ]
  }
]

Keyword

$ turtle -i "  " keyword happy
[
  {
    "name": "blush",
    "category": "people",
    "char": "😊",
    "keywords": [
      "face",
      "smile",
      "happy",
      "flushed",
      "crush",
      "embarrassed",
      "shy",
      "joy"
    ]
  },
  {
    "name": "grin",
    "category": "people",
    "char": "😁",
    "keywords": [
      "face",
      "happy",
      "smile",
      "joy",
      "kawaii"
    ]
  },
  {
    "name": "grinning",
    "category": "people",
    "char": "πŸ˜€",
    "keywords": [
      "face",
      "smile",
      "happy",
      "joy",
      ":D",
      "grin"
    ]
  }
]

List names, categories, keywords

Use the list subcommand to get information about emoji names, categories, and keywords.

$ turtle -i "  " list categories
[
    "activity",
    "animals_and_nature",
    "flags",
    "food_and_drink",
    "objects",
    "people",
    "symbols",
    "travel_and_places"
]