struct

AptLarder::CLI::Arguments

Inherits Iterable / Enumerable / Struct / Value / Object

Command-line interface built with Admiral.

Subcommands

  • server — start the caching proxy
  • info — print version and Crystal build information
  • stats — show live proxy counters via the admin API
  • cache — manage the cache via the admin API (list / flush / invalidate)
  • evict — trigger LRU / time-based eviction via the admin API

Usage

apt-larder server --config /etc/apt-larder.yml
apt-larder stats
apt-larder cache list --prefix deb.debian.org
apt-larder cache invalidate "deb.debian.org/debian/pool/main/pkg.deb"
apt-larder cache flush
apt-larder evict --max-age-days 7

Constants

SPECS = {} of String => NamedTuple(type: String, description: Tuple(String, String | ::Nil), default: String, is_required: Bool)

Constructors

new(command : Admiral::Command)

Instance methods

[](*args, **options)
[](*args, **options, &)
each(*args, **options)
each(*args, **options, &)
exists?(name : Symbol)
get(name : Symbol)
get?(name : Symbol)
inspect(io)
Source
rest
validate!(command : Admiral::Command)
value_from_spec(command : Admiral::Command, *, arg : String, type, default, is_required : Bool)
Source