Skip to content

Latest commit

 

History

History
44 lines (29 loc) · 757 Bytes

README.md

File metadata and controls

44 lines (29 loc) · 757 Bytes

ddg-cli

A DuckDuckGo CLI written in Swift.

Requirements

  • macOS (probably won't get around to supporting other platforms)
  • Swift

Install

Using just

[clone repo]
cd [git repo path]
just install [desired $PATH directory]

e.g.,

git clone https://github.com/junebash/swift-ddg-cli
cd swift-ddg-cli
just install ~/my_path

If you don't provide a PATH, it will install to ~/.local/bin/ by default


Manual

  1. cd into git repo directory
  2. swift build
  3. Find ddg binary somewhere in .build folder
  4. Move binary somewhere in shell path
  5. Call ddg [query]

Usage

ddg Swift programming language ^g

Note that ^ replaces ! for DuckDuckGo bang operators.