https://github.com/bfontaine/slg
:metal: Slengo.it in your terminal.
https://github.com/bfontaine/slg
cli italiano ruby slang tool
Last synced: 11 months ago
JSON representation
:metal: Slengo.it in your terminal.
- Host: GitHub
- URL: https://github.com/bfontaine/slg
- Owner: bfontaine
- License: mit
- Created: 2020-03-23T16:08:23.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-04-02T14:25:44.000Z (about 6 years ago)
- Last Synced: 2025-07-24T22:05:47.154Z (11 months ago)
- Topics: cli, italiano, ruby, slang, tool
- Language: Ruby
- Size: 34.2 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGES.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# slg
[](https://rubygems.org/gems/slg)
[](http://inch-ci.org/github/bfontaine/slg)
**slg** is a command-line tool for [Slengo][], the Italian Urban Dictionary.
See [ud][] for the English equivalent.
[ud]: https://github.com/bfontaine/ud
[Slengo]: https://slengo.it/define/catramina
## Example
$ slg zisca
* zisca (100/0):
Sigaretta.
Example:
Oh, amo' che mi alzi una zisca?
## Install
gem install slg
Windows users: You will need the Win32 Console ANSI gem for the colored output.
Install it with `gem install win32console`.
## Usage
From the command-line:
$ slg
It supports a few options:
- `-n`, `--count`: maximum number of definitions (default: 1)
- `--no-color`: disable colored output.
- `-b`, `--browser`: open the results in your browser instead of displaying
them in the console
In a Ruby script:
```ruby
require "slg"
defs = Slg.query("culo")
```