Giter Site home page Giter Site logo

scout-fork's Introduction

scout

CLI tool for searching packages on Hackage.

Install

Build with cabal or grab a binary from the releases page.

git clone https:/github.com/aloussase/scout.git
cd scout
cabal install

The project uses GHC version 9.0.2, so make sure you are using that to install.

Usage

scout --help
scout - CLI tool for scouting packages in Hackage

Usage: scout COMMAND [-l|--limit INT] [-f|--format apt, csv] [-s|--select ARG]

  Scout Hackage packages

Available options:
  -l,--limit INT           How many packages to show in the output (default: 16)
  -f,--format apt, csv     Format in which to display search results
                           (default: Apt)
  -s,--select ARG          Fields from package info to output
                           (default: [Description,Downloads,LastUpload,Name,Uri,Votes])
  -h,--help                Show this help text

Available commands:
  search                   Search packages in Hackage

Example

List the first 3 packages:

scout search aeson --limit 3

Find the package with the most downloads and copy its uri to the clipboard:

scout search megaparsec --limit 1 | awk '/uri/ {print $3}' | xclip -sel clip

Output only the name and uri fields (only works in csv mode for the moment):

scout search scotty --format csv --select name,uri

Neovim - Telescope extension

scout demo

The repository contains a telescope extension in the vim directory that can be used to dynamically search for packages and open the selected one's Hackage url in the browser.

You can install the extension using packer:

use { 'aloussase/scout', rtp = 'vim' }

And then load the extension:

require('telescope').load_extension('scout')

License

MIT

scout-fork's People

Contributors

aloussase 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.