Skip to content

junebash/swift-ddg-cli

Repository files navigation

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.

About

A DuckDuckGo CLI built with Swift

Resources

Stars

Watchers

Forks

Packages

No packages published