Command line tool for kutt.it

Crates.io Build Status Build status License: MIT

work in progress

Install

sh cargo install kutt

Set apikey

```sh kutt --login your-api-key

or

export KUTTAPIKEY='your-api-key' ```

Example

```sh kutt --target-url https://github.com/ --custom-url your-domain

or

echo 'https://github.com/' | kutt -c your-domain ```

Usage command line

```sh USAGE: kutt [OPTIONS]

FLAGS: -h, --help Prints help information -V, --version Prints version information

OPTIONS: -c, --custom-url Set a domain name -d, --delete Set a url -l, --login Set a apikey -p, --password Set a password -t, --target-url Set a url ```

How to use crate

sh cargo add kutt ```rust extern crate dotenv; extern crate kutt;

use dotenv::dotenv; use kutt::Kutt;

fn main() { dotenv().ok(); // read KUTTAPIKEY in .env file let slink = Kutt::targeturl("https://addr-example...") .customurl("custom-url") .createshortlink() .unwrap(); println!("{}", slink); } ```