Git Product home page Git Product logo

animethemes-cli's Introduction

animethemes-cli

GitHub Workflow Status GitHub release (latest by date)

CLI tool to find and listen to anime openings and endings from your terminal ๐ŸŽถ using animethemes.moe

Installation | Usage

Installation

Grab the latest release, make the file executable with chmod +x animethemes and copy it to either /usr/bin/ or ~/.local/bin/ (if it's in your PATH)

By default, animethemes-cli uses mpv to play videos, but you can change that in Configuration

Build from source

# Make sure go is installed
go version
# (tested on 1.18)

# Clone this repository
git clone https://github.com/mayudev/animethemes-cli
cd animethemes-cli

# Compile the package
go build -ldflags "-s -w" -o animethemes

# Install the package (make sure ~/.local/bin/ is in path)
mv animethemes ~/.local/bin/
# Alternatively, if you want to install it for all users
sudo mv animethemes /usr/local/bin/

Usage

Use animethemes to show all commands with explanations.

Flag --player (-p) allows you to specify a player to use. You can also do it through a config file.

Tip: --player echo will print the video URL to console instead of playing it.

Anime

animethemes anime [query]

Note: you can omit anime and use just animethemes [query]

Looks for [query] in animethemes.moe database. For example, animethemes anime toaru will return all entries with Toaru in title.

Flags

  • -f or --forever - asks for theme choice again once finished playing (note: do not use it with --op or --ed)
  • -p or --player - specify player command to be used (default: mpv)
  • --openings - show only openings
  • --endings - show only ending themes
  • --op [n] - automatically play opening [n]
  • --ed [n] - automatically play ending [n]
  • -1 or --first - automatically selects the first entry if there's more than one result

For example, animethemes railgun t --first --op 1 will choose Toaru Kagaku no Railgun T and OP1, final phase for you.

Year

animethemes year [year]

Returns all anime released in year [year]

Configuration

Config file for animethemes-cli is stored in ~/.config/animethemes-cli.yml. You can use it to set your default player. For example:

player: vlc

animethemes-cli's People

Contributors

mayudev avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.