/spub

Simple command line program to open pub.dev with given arguments.

Primary LanguageDartMIT LicenseMIT

Dart

spub - Search pub

A simple dart command line application that opens a browser and redirects to `pub.dev` with given arguments.
For each argument a new search will happen.

Why?

Are you tired of opening a browser/tab and entering pub.dev, afterwards searching for a/the package?

This process frustrates me sometimes, so I thought why not just open it with a simple cli-tool? Furthermore if the given package could not be found, this tool tries to help with further suggestions.

Activate

git clone https://github.com/jayjah/spub.git
cd spub 
dart pub global activate --source path .

Usage

Probably it makes sense to make an alias for the command dart pub global run to make your life easier.

dart pub global run spub args test

Structure

  • entrypoint in bin/
  • library code in lib/
  • unit test in test/
ToDos
  • add --doc parameter for documentation path