class Wallhaven::Downloader::Downloader

Defined in:

wallhaven-downloader.cr

Constant Summary

HELP = {"description" => ""}

Class Method Summary

Instance Method Summary

Class Method Detail

def self.description #

[View source]
def self.run(*args, **params) #

[View source]

Instance Method Detail

def __rescue_from___Admiral__Error(e) #

def arguments #
Description copied from class Admiral::Command

Returns the commands Arguments object.

You can access names arguments by name. You can also access the remaning arguments using .arguments[index].


[View source]
def build_query_params(page : UInt32) #

Build the query params for the search query.


[View source]
def flags #
Description copied from class Admiral::Command

Returns the commands Flags object.

You can access names flags by name.


[View source]
def help #

def request(uri : URI) #

Execute a request to a HTTP endpoint (URI).


[View source]
def request(uri : String) #

Execute a request to a HTTP endpoint (string).


[View source]
def request_and_parse(uri : URI | String) #

Execute a request to a HTTP endpoint and parse the responded HTML.


[View source]
def run #

Main command loop.


[View source]
def sub(command, *args, **params) #
Description copied from class Admiral::Command

Invokes a sub command by name, passing self as the parent.


[View source]
def version #

[View source]