module Bradach
Extended Modules
Defined in:
bradach.crConstant Summary
-
VERSION =
"0.1.1"
-
The version of the program.
Class Method Summary
-
.addr : String
The address on which to listen (when daemon is true)
-
.addr=(addr : String)
The address on which to listen (when daemon is true)
-
.cors : String
An origin to use for CORS
-
.cors=(cors : String)
An origin to use for CORS
-
.count : Int32
The (max) number of results shown.
-
.count=(count : Int32)
The (max) number of results shown.
-
.daemon=(daemon : Bool)
If true, instead of searching, the application will listen on
.port
/tcp for new connections and serve JSON responses. -
.daemon? : Bool
If true, instead of searching, the application will listen on
.port
/tcp for new connections and serve JSON responses. -
.json=(json : Bool)
If true, the results are printed as a JSON array, rather than as a list of magnet links.
-
.json? : Bool
If true, the results are printed as a JSON array, rather than as a list of magnet links.
-
.port : Int32
The port on which to listen (when daemon is true)
-
.port=(port : Int32)
The port on which to listen (when daemon is true)
-
.trackers : Array(String)
The list of trackers used to create magnet links.
-
.trackers=(trackers : Array(String))
The list of trackers used to create magnet links.
-
.url : String
The URL used to search.
-
.url=(url : String)
The URL used to search.
-
.version : String
A version string for the programme.
-
.version=(version : String)
A version string for the programme.
-
.webroot : String
A directory from which to serve static files (in daemon mode).
-
.webroot=(webroot : String)
A directory from which to serve static files (in daemon mode).
Instance Method Summary
-
#parse(args : Array(String) = ARGV)
Parses the given command-line args using an OptionParser.
Class Method Detail
If true, instead of searching, the application will listen on .port
/tcp
for new connections and serve JSON responses.
If true, instead of searching, the application will listen on .port
/tcp
for new connections and serve JSON responses.
If true, the results are printed as a JSON array, rather than as a list of magnet links. Has no effect in daemon mode.
If true, the results are printed as a JSON array, rather than as a list of magnet links. Has no effect in daemon mode.
A directory from which to serve static files (in daemon mode).