Skip to content

itspriddle/shotty

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

75 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Shotty

A CLI tool to upload screenshots (and other files) to cloud storage and get direct URLs. Supports Dropbox and Droplr as backends.

Install

cargo install --path .

Setup

Dropbox

1. Create a Dropbox App

  1. Go to https://www.dropbox.com/developers/apps
  2. Click Create app
  3. Choose Scoped access and Full Dropbox
  4. Under Permissions, enable files.content.write and sharing.write
  5. Copy the App key from the Settings tab

2. Configure Shotty

shotty config set backend dropbox
shotty config set dropbox.app_key YOUR_APP_KEY

3. Authenticate

shotty auth

This opens a browser for Dropbox OAuth authorization using PKCE.

Droplr

1. Configure Shotty

shotty config set backend droplr

2. Authenticate

shotty auth

This prompts for your Droplr email and password. Credentials are stored securely in the system keyring.

Usage

Upload a file:

shotty upload screenshot.png

Upload from stdin:

cat image.png | shotty upload --name image.png

Upload and copy URL to clipboard:

shotty upload screenshot.png --copy

Configuration

Show current config:

shotty config show

Print config file path:

shotty config path

The config file location is platform-specific. Use shotty config path to check.

Development

cargo build
cargo test
cargo fmt
cargo clippy --all-targets -- -D warnings

About

Fast CLI tool to upload screenshots and files to cloud storage

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages