Crate neocities_cli

Source
Expand description

A Neocities API client written in Rust

§Usage:

  • Upload files to your website:
$ neocities_cli upload foo.html bar.js folder/baz.jpg
  • Delete files from your website:
$ neocities_cli delete foo.html folder/baz.jpg

Get a list of available commands:

$ neocities_cli

// output ...
//
// usage: neocities_cli <command> [<args>]
//
// Commands:
//    upload    Upload files to Neocities
//    delete    Delete files from Neocities
//    info      Info about Neocities websites
//    key       Neocities API key
//    list      List files on Neocities
//    version   Show neocities client version
//
//  Help for a specific command:
//    help [command]

Modules§

api
Sends requests to the Neocities API, passes response data back to the client module
client
Handles user interface, processes input, sends and receives data from the api module
error
Defines error variants found within this library