docker.dhover×651all
#!/usr/bin/env dub
/+ dub.sdl:
    name "docker"
    dependency "sparkles:core-cli" path="../../../../.."
    targetPath "build"
    // Optimised, assertions live, `debug {}` blocks out — the build every nix
    // artifact uses. Neither `debug` (which compiles those blocks in) nor
    // `release` (which deletes assert *expressions*, side effects included).
    buildType "checked" {
        buildOptions "optimize" "inline" "debugInfo"
    }
+/
// ci: run --help

import 
(package) sparkles
sparkles
.
(package) sparkles.core_cli
core_cli
.
(module) sparkles.core_cli.args
args
;
import
(package) sparkles
sparkles
.
(package) sparkles.base
base
.
(module) sparkles.base.prettyprint
prettyprint
:
(alias template) docker.prettyPrint = sparkles.base.prettyprint.prettyPrint(T, Hook = void)(in T value, in PrettyPrintOptions!Hook opt = PrettyPrintOptions!Hook())

Convenience overload that returns a string.

prettyPrint
;
import
(package) sparkles
sparkles
.
(package) sparkles.base
base
.
(module) sparkles.base.styled_template

Style template processing for IES (Interpolated Expression Sequences).

Provides a template syntax for applying terminal styles to IES strings:

import sparkles.base.styled_template;

int cpu = 75;
styledWriteln(i"CPU: {red $(cpu)%} Status: {green OK}");

Supported syntax:

  • {red text} — Apply single style

  • {bold.red text} — Chain multiple styles

  • {bold outer {red nested}} — Nested blocks (inner inherits outer)

  • {red text {~red normal}} — Negation with ~ removes a style

  • #{ — Escaped literal {

  • #} — Escaped literal }

styled_template
:
(alias template) docker.styledWriteln = sparkles.base.styled_template.styledWriteln(Args...)(ColorDepth depth, InterpolationHeader header, Args args, InterpolationFooter footer)

Write styled IES to stdout with newline.

styledWriteln
;
import
(package) std
std
.
(module) std.sumtype

SumType is a generic discriminated union implementation that uses design-by-introspection to generate safe and efficient code. Its features include:

  • Pattern matching.

  • Support for self-referential types.

  • Full attribute correctness (pure, @safe, @nogc, and nothrow are inferred whenever possible).

  • A type-safe and memory-safe API compatible with DIP 1000 (scope).

  • No dependency on runtime type information (TypeInfo).

  • Compatibility with BetterC.

List of examples

Source

std/sumtype.d

Examples

Basic usage

import std.math.operations : isClose;

struct Fahrenheit { double value; }
struct Celsius { double value; }
struct Kelvin { double value; }

alias Temperature = SumType!(Fahrenheit, Celsius, Kelvin);

// Construct from any of the member types.
Temperature t1 = Fahrenheit(98.6);
Temperature t2 = Celsius(100);
Temperature t3 = Kelvin(273);

// Use pattern matching to access the value.
Fahrenheit toFahrenheit(Temperature t)
{
    return Fahrenheit(
        t.match!(
            (Fahrenheit f) => f.value,
            (Celsius c) => c.value * 9.0/5 + 32,
            (Kelvin k) => k.value * 9.0/5 - 459.4
        )
    );
}

assert(toFahrenheit(t1).value.isClose(98.6));
assert(toFahrenheit(t2).value.isClose(212));
assert(toFahrenheit(t3).value.isClose(32));

// Use ref to modify the value in place.
void freeze(ref Temperature t)
{
    t.match!(
        (ref Fahrenheit f) => f.value = 32,
        (ref Celsius c) => c.value = 0,
        (ref Kelvin k) => k.value = 273
    );
}

freeze(t1);
assert(toFahrenheit(t1).value.isClose(32));

// Use a catch-all handler to give a default result.
bool isFahrenheit(Temperature t)
{
    return t.match!(
        (Fahrenheit f) => true,
        _ => false
    );
}

assert(isFahrenheit(t1));
assert(!isFahrenheit(t2));
assert(!isFahrenheit(t3));

Matching with an overload set

Instead of writing match handlers inline as lambdas, you can write them as overloads of a function. An alias can be used to create an additional overload for the SumType itself.

For example, with this overload set:

string handle(int n) { return "got an int"; }
string handle(string s) { return "got a string"; }
string handle(double d) { return "got a double"; }
alias handle = match!handle;

Usage would look like this:

alias ExampleSumType = SumType!(int, string, double);

ExampleSumType a = 123;
ExampleSumType b = "hello";
ExampleSumType c = 3.14;

assert(a.handle == "got an int");
assert(b.handle == "got a string");
assert(c.handle == "got a double");

Recursive SumTypes

This example makes use of the special placeholder type This to define a recursive data type: an abstract syntax tree for representing simple arithmetic expressions.

import std.functional : partial;
import std.traits : EnumMembers;
import std.typecons : Tuple;

enum Op : string
{
    Plus  = "+",
    Minus = "-",
    Times = "*",
    Div   = "/"
}

// An expression is either
//  - a number,
//  - a variable, or
//  - a binary operation combining two sub-expressions.
alias Expr = SumType!(
    double,
    string,
    Tuple!(Op, "op", This*, "lhs", This*, "rhs")
);

// Shorthand for Tuple!(Op, "op", Expr*, "lhs", Expr*, "rhs"),
// the Tuple type above with Expr substituted for This.
alias BinOp = Expr.Types[2];

// Factory function for number expressions
Expr* num(double value)
{
    return new Expr(value);
}

// Factory function for variable expressions
Expr* var(string name)
{
    return new Expr(name);
}

// Factory function for binary operation expressions
Expr* binOp(Op op, Expr* lhs, Expr* rhs)
{
    return new Expr(BinOp(op, lhs, rhs));
}

// Convenience wrappers for creating BinOp expressions
alias sum  = partial!(binOp, Op.Plus);
alias diff = partial!(binOp, Op.Minus);
alias prod = partial!(binOp, Op.Times);
alias quot = partial!(binOp, Op.Div);

// Evaluate expr, looking up variables in env
double eval(Expr expr, double[string] env)
{
    return expr.match!(
        (double num) => num,
        (string var) => env[var],
        (BinOp bop)
        {
            double lhs = eval(*bop.lhs, env);
            double rhs = eval(*bop.rhs, env);
            final switch (bop.op)
            {
                static foreach (op; EnumMembers!Op)
                {
                    case op:
                        return mixin("lhs" ~ op ~ "rhs");
                }
            }
        }
    );
}

// Return a "pretty-printed" representation of expr
string pprint(Expr expr)
{
    import std.format : format;

    return expr.match!(
        (double num) => "%g".format(num),
        (string var) => var,
        (BinOp bop) => "(%s %s %s)".format(
            pprint(*bop.lhs),
            cast(string) bop.op,
            pprint(*bop.rhs)
        )
    );
}

Expr* myExpr = sum(var("a"), prod(num(2), var("b")));
double[string] myEnv = ["a":3, "b":4, "c":7];

assert(eval(*myExpr, myEnv) == 11);
assert(pprint(*myExpr) == "(a + (2 * b))");
@licenseBoost License 1.0@authorsPaul Backus
sumtype
;
private enum
(alias) object.string = string
string
[]
(constant) string[] docker.restartPolicies = ["no", "on-failure", "always", "unless-stopped"]
restartPolicies
= [
"no", "on-failure", "always", "unless-stopped", ]; // ─── shared run-options struct ─────────────────────────────────────────── struct
(struct) docker.ContainerRunOptions
ContainerRunOptions
{ @(
(struct) sparkles.core_cli.args.uda.Option
Option
(`d|detach`, description: "Run the container in the background and print its ID"))
bool
(field) bool docker.ContainerRunOptions.detach
detach
;
@(
(struct) sparkles.core_cli.args.uda.Option
Option
(`i|interactive`, description: "Keep STDIN open even if not attached"))
bool
(field) bool docker.ContainerRunOptions.interactive
interactive
;
@(
(struct) sparkles.core_cli.args.uda.Option
Option
(`t|tty`, description: "Allocate a pseudo-TTY"))
bool
(field) bool docker.ContainerRunOptions.tty
tty
;
@(
(struct) sparkles.core_cli.args.uda.Option
Option
(`name`, description: "Assign a name to the container"))
(alias) object.string = string
string
(field) string docker.ContainerRunOptions.name
name
;
@(
(struct) sparkles.core_cli.args.uda.Option
Option
(`e|env`, description: "Set environment variables in the container. Can be specified multiple times."))
(alias) object.string = string
string
[]
(field) string[] docker.ContainerRunOptions.env
env
;
@(
(struct) sparkles.core_cli.args.uda.Option
Option
(`v|volume`, description: "Bind-mount a volume into the container. Can be specified multiple times."))
(alias) object.string = string
string
[]
(field) string[] docker.ContainerRunOptions.volumes
volumes
;
@(
(struct) sparkles.core_cli.args.uda.Option
Option
(`p|publish`, description: "Publish a container port to the host. Can be specified multiple times."))
(alias) object.string = string
string
[]
(field) string[] docker.ContainerRunOptions.publish
publish
;
@(
(struct) sparkles.core_cli.args.uda.Option
Option
(`l|label`, description: "Set metadata on the container. Can be specified multiple times."))
(alias) object.string = string
string
[]
(field) string[] docker.ContainerRunOptions.labels
labels
;
@(
(struct) sparkles.core_cli.args.uda.Option
Option
(`network`, description: "Connect the container to a named network"))
(alias) object.string = string
string
(field) string docker.ContainerRunOptions.network
network
;
@(
(struct) sparkles.core_cli.args.uda.Option
Option
(`restart`, allowedValues:
(constant) string[] docker.restartPolicies = ["no", "on-failure", "always", "unless-stopped"]
restartPolicies
))
(alias) object.string = string
string
(field) string docker.ContainerRunOptions.restart
restart
= "no";
@(
(struct) sparkles.core_cli.args.uda.Option
Option
(`rm`, description: "Automatically remove the container when it exits"))
bool
(field) bool docker.ContainerRunOptions.autoRemove
autoRemove
;
@(
(struct) sparkles.core_cli.args.uda.Argument
Argument
("image"))
(alias) object.string = string
string
(field) string docker.ContainerRunOptions.image
image
;
@(
(struct) sparkles.core_cli.args.uda.Argument
Argument
("command", optional: true))
(alias) object.string = string
string
[]
(field) string[] docker.ContainerRunOptions.command
command
;
} // ─── container group ───────────────────────────────────────────────────── @(
(struct) sparkles.core_cli.args.uda.Command
Command
("run",
shortDescription: "Create and run a new container from an image", helpSections: ["description"], )) struct
(struct) docker.ContainerRun
ContainerRun
{ @
(struct) sparkles.core_cli.args.uda.Flatten

UDA to flatten a nested struct of CLI options into the parent command struct.

When a struct field is annotated with @Flatten``, its fields participate in option parsing, short-option bundling, positional argument assignment, and validation as if they were declared directly on the enclosing command.

@paramgroupHeading Optional heading used to group the flattened options in --help output. If null, options appear under the main OPTIONS section.@paramprefix Optional prefix prepended to long option names (e.g., "diff-" maps layout to --diff-layout).
Flatten
(struct) docker.ContainerRunOptions
ContainerRunOptions
(field) docker.ContainerRunOptions docker.ContainerRun.runOptions
runOptions
;
void
void docker.ContainerRun.run()
run
()
{ import
(package) std
std
.
(module) std.stdio
Category Symbols
File handles _popen File isFileHandle openNetwork stderr stdin stdout
Reading chunks lines readf readfln readln
Writing toFile write writef writefln writeln
Misc KeepTerminator LockType StdioException

Standard I/O functions that extend core.stdc.stdio. core.stdc.stdio is publically imported when importing std.stdio.

There are three layers of I/O:

  1. The lowest layer is the operating system layer. The two main schemes are Windows and Posix.

  2. C's stdio.h which unifies the two operating system schemes.

  3. std.stdio, this module, unifies the various stdio.h implementations into a high level package for D programs.

Source

std/stdio.d

@copyrightCopyright The D Language Foundation 2007-.@licenseBoost License 1.0.@authorsWalter Bright, Andrei Alexandrescu, Alex Rønne Petersen
stdio
:
(alias template) writeln = std.stdio.writeln(T...)(T args)

Equivalent to write(args, '\n'). Calling writeln without arguments is valid and just prints a newline to the standard output.

Params: args = the items to write to stdout

Throws: In case of an I/O error, throws an $(LREF StdioException). Example: Reads stdin and writes it to stdout with an argument counter.

import std.stdio;

void main() { string line;

    for (size_t count = 0; (line = readln) !is null; count++)
    {
         writeln("Input ", count, ": ", line);
    }

} ---

writeln
;
void std.stdio.writeln!string(string __param_0) @safe

Equivalent to write(args, '\n'). Calling writeln without arguments is valid and just prints a newline to the standard output.

Example

Reads stdin and writes it to stdout with an argument counter.

import std.stdio;

void main()
{
    string line;

    for (size_t count = 0; (line = readln) !is null; count++)
    {
         writeln("Input ", count, ": ", line);
    }
}
@paramargs the items to write to stdout@throwsIn case of an I/O error, throws an StdioException.
writeln
("Running docker container run with params:");
void std.stdio.writeln!string(string __param_0) @safe

Equivalent to write(args, '\n'). Calling writeln without arguments is valid and just prints a newline to the standard output.

Example

Reads stdin and writes it to stdout with an argument counter.

import std.stdio;

void main()
{
    string line;

    for (size_t count = 0; (line = readln) !is null; count++)
    {
         writeln("Input ", count, ": ", line);
    }
}
@paramargs the items to write to stdout@throwsIn case of an I/O error, throws an StdioException.
writeln
(
string sparkles.base.prettyprint.prettyPrint!(docker.ContainerRun, void)(in docker.ContainerRun value, in sparkles.base.prettyprint.PrettyPrintOptions!void opt = PrettyPrintOptions(cast(ushort)2u, cast(ushort)8u, 32u, 80u, true, false)) pure nothrow @safe

Convenience overload that returns a string.

prettyPrint
(this));
} } @(
(struct) sparkles.core_cli.args.uda.Command
Command
("ls",
aliases: ["ps"], shortDescription: "List containers", helpSections: ["description"], )) struct
(struct) docker.ContainerLs
ContainerLs
{ @(
(struct) sparkles.core_cli.args.uda.Option
Option
(`a|all`, description: "Show all containers (default shows just running)"))
bool
(field) bool docker.ContainerLs.all
all
;
@(
(struct) sparkles.core_cli.args.uda.Option
Option
(`q|quiet`, description: "Only display container IDs"))
bool
(field) bool docker.ContainerLs.quiet
quiet
;
@(
(struct) sparkles.core_cli.args.uda.Option
Option
(`f|filter`, description: "Filter output based on conditions provided. Can be specified multiple times."))
(alias) object.string = string
string
[]
(field) string[] docker.ContainerLs.filters
filters
;
@(
(struct) sparkles.core_cli.args.uda.Option
Option
(`format`, description: "Pretty-print containers using a Go template"))
(alias) object.string = string
string
(field) string docker.ContainerLs.format
format
;
@(
(struct) sparkles.core_cli.args.uda.Option
Option
(`s|size`, description: "Display total file sizes"))
bool
(field) bool docker.ContainerLs.size
size
;
void
void docker.ContainerLs.run()
run
()
{ import
(package) std
std
.
(module) std.stdio
Category Symbols
File handles _popen File isFileHandle openNetwork stderr stdin stdout
Reading chunks lines readf readfln readln
Writing toFile write writef writefln writeln
Misc KeepTerminator LockType StdioException

Standard I/O functions that extend core.stdc.stdio. core.stdc.stdio is publically imported when importing std.stdio.

There are three layers of I/O:

  1. The lowest layer is the operating system layer. The two main schemes are Windows and Posix.

  2. C's stdio.h which unifies the two operating system schemes.

  3. std.stdio, this module, unifies the various stdio.h implementations into a high level package for D programs.

Source

std/stdio.d

@copyrightCopyright The D Language Foundation 2007-.@licenseBoost License 1.0.@authorsWalter Bright, Andrei Alexandrescu, Alex Rønne Petersen
stdio
:
(alias template) writeln = std.stdio.writeln(T...)(T args)

Equivalent to write(args, '\n'). Calling writeln without arguments is valid and just prints a newline to the standard output.

Params: args = the items to write to stdout

Throws: In case of an I/O error, throws an $(LREF StdioException). Example: Reads stdin and writes it to stdout with an argument counter.

import std.stdio;

void main() { string line;

    for (size_t count = 0; (line = readln) !is null; count++)
    {
         writeln("Input ", count, ": ", line);
    }

} ---

writeln
;
void std.stdio.writeln!string(string __param_0) @safe

Equivalent to write(args, '\n'). Calling writeln without arguments is valid and just prints a newline to the standard output.

Example

Reads stdin and writes it to stdout with an argument counter.

import std.stdio;

void main()
{
    string line;

    for (size_t count = 0; (line = readln) !is null; count++)
    {
         writeln("Input ", count, ": ", line);
    }
}
@paramargs the items to write to stdout@throwsIn case of an I/O error, throws an StdioException.
writeln
("Running docker container ls with params:");
void std.stdio.writeln!string(string __param_0) @safe

Equivalent to write(args, '\n'). Calling writeln without arguments is valid and just prints a newline to the standard output.

Example

Reads stdin and writes it to stdout with an argument counter.

import std.stdio;

void main()
{
    string line;

    for (size_t count = 0; (line = readln) !is null; count++)
    {
         writeln("Input ", count, ": ", line);
    }
}
@paramargs the items to write to stdout@throwsIn case of an I/O error, throws an StdioException.
writeln
(
string sparkles.base.prettyprint.prettyPrint!(docker.ContainerLs, void)(in docker.ContainerLs value, in sparkles.base.prettyprint.PrettyPrintOptions!void opt = PrettyPrintOptions(cast(ushort)2u, cast(ushort)8u, 32u, 80u, true, false)) pure nothrow @safe

Convenience overload that returns a string.

prettyPrint
(this));
} } @(
(struct) sparkles.core_cli.args.uda.Command
Command
("stop",
shortDescription: "Stop one or more running containers", helpSections: ["description"], )) struct
(struct) docker.ContainerStop
ContainerStop
{ @(
(struct) sparkles.core_cli.args.uda.Option
Option
(`t|time`, description: "Seconds to wait for stop before killing the container"))
int
(field) int docker.ContainerStop.time
time
= 10;
@(
(struct) sparkles.core_cli.args.uda.Argument
Argument
("containers"))
(alias) object.string = string
string
[]
(field) string[] docker.ContainerStop.containers
containers
;
void
void docker.ContainerStop.run()
run
()
{ import
(package) std
std
.
(module) std.stdio
Category Symbols
File handles _popen File isFileHandle openNetwork stderr stdin stdout
Reading chunks lines readf readfln readln
Writing toFile write writef writefln writeln
Misc KeepTerminator LockType StdioException

Standard I/O functions that extend core.stdc.stdio. core.stdc.stdio is publically imported when importing std.stdio.

There are three layers of I/O:

  1. The lowest layer is the operating system layer. The two main schemes are Windows and Posix.

  2. C's stdio.h which unifies the two operating system schemes.

  3. std.stdio, this module, unifies the various stdio.h implementations into a high level package for D programs.

Source

std/stdio.d

@copyrightCopyright The D Language Foundation 2007-.@licenseBoost License 1.0.@authorsWalter Bright, Andrei Alexandrescu, Alex Rønne Petersen
stdio
:
(alias template) writeln = std.stdio.writeln(T...)(T args)

Equivalent to write(args, '\n'). Calling writeln without arguments is valid and just prints a newline to the standard output.

Params: args = the items to write to stdout

Throws: In case of an I/O error, throws an $(LREF StdioException). Example: Reads stdin and writes it to stdout with an argument counter.

import std.stdio;

void main() { string line;

    for (size_t count = 0; (line = readln) !is null; count++)
    {
         writeln("Input ", count, ": ", line);
    }

} ---

writeln
;
void std.stdio.writeln!string(string __param_0) @safe

Equivalent to write(args, '\n'). Calling writeln without arguments is valid and just prints a newline to the standard output.

Example

Reads stdin and writes it to stdout with an argument counter.

import std.stdio;

void main()
{
    string line;

    for (size_t count = 0; (line = readln) !is null; count++)
    {
         writeln("Input ", count, ": ", line);
    }
}
@paramargs the items to write to stdout@throwsIn case of an I/O error, throws an StdioException.
writeln
("Running docker container stop with params:");
void std.stdio.writeln!string(string __param_0) @safe

Equivalent to write(args, '\n'). Calling writeln without arguments is valid and just prints a newline to the standard output.

Example

Reads stdin and writes it to stdout with an argument counter.

import std.stdio;

void main()
{
    string line;

    for (size_t count = 0; (line = readln) !is null; count++)
    {
         writeln("Input ", count, ": ", line);
    }
}
@paramargs the items to write to stdout@throwsIn case of an I/O error, throws an StdioException.
writeln
(
string sparkles.base.prettyprint.prettyPrint!(docker.ContainerStop, void)(in docker.ContainerStop value, in sparkles.base.prettyprint.PrettyPrintOptions!void opt = PrettyPrintOptions(cast(ushort)2u, cast(ushort)8u, 32u, 80u, true, false)) pure nothrow @safe

Convenience overload that returns a string.

prettyPrint
(this));
} } @(
(struct) sparkles.core_cli.args.uda.Command
Command
("rm",
shortDescription: "Remove one or more containers", helpSections: ["description"], )) struct
(struct) docker.ContainerRm
ContainerRm
{ @(
(struct) sparkles.core_cli.args.uda.Option
Option
(`f|force`, description: "Force-remove a running container (uses SIGKILL)"))
bool
(field) bool docker.ContainerRm.force
force
;
@(
(struct) sparkles.core_cli.args.uda.Option
Option
(`v|volumes`, description: "Remove anonymous volumes associated with the container"))
bool
(field) bool docker.ContainerRm.volumes
volumes
;
@(
(struct) sparkles.core_cli.args.uda.Argument
Argument
("containers"))
(alias) object.string = string
string
[]
(field) string[] docker.ContainerRm.containers
containers
;
void
void docker.ContainerRm.run()
run
()
{ import
(package) std
std
.
(module) std.stdio
Category Symbols
File handles _popen File isFileHandle openNetwork stderr stdin stdout
Reading chunks lines readf readfln readln
Writing toFile write writef writefln writeln
Misc KeepTerminator LockType StdioException

Standard I/O functions that extend core.stdc.stdio. core.stdc.stdio is publically imported when importing std.stdio.

There are three layers of I/O:

  1. The lowest layer is the operating system layer. The two main schemes are Windows and Posix.

  2. C's stdio.h which unifies the two operating system schemes.

  3. std.stdio, this module, unifies the various stdio.h implementations into a high level package for D programs.

Source

std/stdio.d

@copyrightCopyright The D Language Foundation 2007-.@licenseBoost License 1.0.@authorsWalter Bright, Andrei Alexandrescu, Alex Rønne Petersen
stdio
:
(alias template) writeln = std.stdio.writeln(T...)(T args)

Equivalent to write(args, '\n'). Calling writeln without arguments is valid and just prints a newline to the standard output.

Params: args = the items to write to stdout

Throws: In case of an I/O error, throws an $(LREF StdioException). Example: Reads stdin and writes it to stdout with an argument counter.

import std.stdio;

void main() { string line;

    for (size_t count = 0; (line = readln) !is null; count++)
    {
         writeln("Input ", count, ": ", line);
    }

} ---

writeln
;
void std.stdio.writeln!string(string __param_0) @safe

Equivalent to write(args, '\n'). Calling writeln without arguments is valid and just prints a newline to the standard output.

Example

Reads stdin and writes it to stdout with an argument counter.

import std.stdio;

void main()
{
    string line;

    for (size_t count = 0; (line = readln) !is null; count++)
    {
         writeln("Input ", count, ": ", line);
    }
}
@paramargs the items to write to stdout@throwsIn case of an I/O error, throws an StdioException.
writeln
("Running docker container rm with params:");
void std.stdio.writeln!string(string __param_0) @safe

Equivalent to write(args, '\n'). Calling writeln without arguments is valid and just prints a newline to the standard output.

Example

Reads stdin and writes it to stdout with an argument counter.

import std.stdio;

void main()
{
    string line;

    for (size_t count = 0; (line = readln) !is null; count++)
    {
         writeln("Input ", count, ": ", line);
    }
}
@paramargs the items to write to stdout@throwsIn case of an I/O error, throws an StdioException.
writeln
(
string sparkles.base.prettyprint.prettyPrint!(docker.ContainerRm, void)(in docker.ContainerRm value, in sparkles.base.prettyprint.PrettyPrintOptions!void opt = PrettyPrintOptions(cast(ushort)2u, cast(ushort)8u, 32u, 80u, true, false)) pure nothrow @safe

Convenience overload that returns a string.

prettyPrint
(this));
} } @(
(struct) sparkles.core_cli.args.uda.Command
Command
("exec",
shortDescription: "Run a command in a running container", helpSections: ["description"], )) struct
(struct) docker.ContainerExec
ContainerExec
{ @(
(struct) sparkles.core_cli.args.uda.Option
Option
(`d|detach`, description: "Detached mode: run the command in the background"))
bool
(field) bool docker.ContainerExec.detach
detach
;
@(
(struct) sparkles.core_cli.args.uda.Option
Option
(`i|interactive`, description: "Keep STDIN open"))
bool
(field) bool docker.ContainerExec.interactive
interactive
;
@(
(struct) sparkles.core_cli.args.uda.Option
Option
(`t|tty`, description: "Allocate a pseudo-TTY"))
bool
(field) bool docker.ContainerExec.tty
tty
;
@(
(struct) sparkles.core_cli.args.uda.Option
Option
(`u|user`, description: "Username or UID inside the container"))
(alias) object.string = string
string
(field) string docker.ContainerExec.user
user
;
@(
(struct) sparkles.core_cli.args.uda.Option
Option
(`w|workdir`, description: "Working directory inside the container"))
(alias) object.string = string
string
(field) string docker.ContainerExec.workdir
workdir
;
@(
(struct) sparkles.core_cli.args.uda.Option
Option
(`e|env`, description: "Set environment variables. Can be specified multiple times."))
(alias) object.string = string
string
[]
(field) string[] docker.ContainerExec.env
env
;
@(
(struct) sparkles.core_cli.args.uda.Argument
Argument
("container"))
(alias) object.string = string
string
(field) string docker.ContainerExec.container
container
;
@(
(struct) sparkles.core_cli.args.uda.Argument
Argument
("command"))
(alias) object.string = string
string
[]
(field) string[] docker.ContainerExec.command
command
;
void
void docker.ContainerExec.run()
run
()
{ import
(package) std
std
.
(module) std.stdio
Category Symbols
File handles _popen File isFileHandle openNetwork stderr stdin stdout
Reading chunks lines readf readfln readln
Writing toFile write writef writefln writeln
Misc KeepTerminator LockType StdioException

Standard I/O functions that extend core.stdc.stdio. core.stdc.stdio is publically imported when importing std.stdio.

There are three layers of I/O:

  1. The lowest layer is the operating system layer. The two main schemes are Windows and Posix.

  2. C's stdio.h which unifies the two operating system schemes.

  3. std.stdio, this module, unifies the various stdio.h implementations into a high level package for D programs.

Source

std/stdio.d

@copyrightCopyright The D Language Foundation 2007-.@licenseBoost License 1.0.@authorsWalter Bright, Andrei Alexandrescu, Alex Rønne Petersen
stdio
:
(alias template) writeln = std.stdio.writeln(T...)(T args)

Equivalent to write(args, '\n'). Calling writeln without arguments is valid and just prints a newline to the standard output.

Params: args = the items to write to stdout

Throws: In case of an I/O error, throws an $(LREF StdioException). Example: Reads stdin and writes it to stdout with an argument counter.

import std.stdio;

void main() { string line;

    for (size_t count = 0; (line = readln) !is null; count++)
    {
         writeln("Input ", count, ": ", line);
    }

} ---

writeln
;
void std.stdio.writeln!string(string __param_0) @safe

Equivalent to write(args, '\n'). Calling writeln without arguments is valid and just prints a newline to the standard output.

Example

Reads stdin and writes it to stdout with an argument counter.

import std.stdio;

void main()
{
    string line;

    for (size_t count = 0; (line = readln) !is null; count++)
    {
         writeln("Input ", count, ": ", line);
    }
}
@paramargs the items to write to stdout@throwsIn case of an I/O error, throws an StdioException.
writeln
("Running docker container exec with params:");
void std.stdio.writeln!string(string __param_0) @safe

Equivalent to write(args, '\n'). Calling writeln without arguments is valid and just prints a newline to the standard output.

Example

Reads stdin and writes it to stdout with an argument counter.

import std.stdio;

void main()
{
    string line;

    for (size_t count = 0; (line = readln) !is null; count++)
    {
         writeln("Input ", count, ": ", line);
    }
}
@paramargs the items to write to stdout@throwsIn case of an I/O error, throws an StdioException.
writeln
(
string sparkles.base.prettyprint.prettyPrint!(docker.ContainerExec, void)(in docker.ContainerExec value, in sparkles.base.prettyprint.PrettyPrintOptions!void opt = PrettyPrintOptions(cast(ushort)2u, cast(ushort)8u, 32u, 80u, true, false)) pure nothrow @safe

Convenience overload that returns a string.

prettyPrint
(this));
} } @(
(struct) sparkles.core_cli.args.uda.Command
Command
("logs",
shortDescription: "Fetch the logs of a container", helpSections: ["description"], )) struct
(struct) docker.ContainerLogs
ContainerLogs
{ @(
(struct) sparkles.core_cli.args.uda.Option
Option
(`f|follow`, description: "Follow log output as it is produced"))
bool
(field) bool docker.ContainerLogs.follow
follow
;
@(
(struct) sparkles.core_cli.args.uda.Option
Option
(`t|timestamps`, description: "Show timestamps on every log line"))
bool
(field) bool docker.ContainerLogs.timestamps
timestamps
;
@(
(struct) sparkles.core_cli.args.uda.Option
Option
(`since`, description: "Show logs since timestamp (e.g. 2024-01-01) or relative (e.g. 42m for 42 minutes)"))
(alias) object.string = string
string
(field) string docker.ContainerLogs.since
since
;
@(
(struct) sparkles.core_cli.args.uda.Option
Option
(`until`, description: "Show logs before the given timestamp"))
(alias) object.string = string
string
(field) string docker.ContainerLogs.until
until
;
@(
(struct) sparkles.core_cli.args.uda.Option
Option
(`n|tail`, description: "Number of lines to show from the end of the logs (default: all)"))
(alias) object.string = string
string
(field) string docker.ContainerLogs.tail
tail
= "all";
@(
(struct) sparkles.core_cli.args.uda.Argument
Argument
("container"))
(alias) object.string = string
string
(field) string docker.ContainerLogs.container
container
;
void
void docker.ContainerLogs.run()
run
()
{ import
(package) std
std
.
(module) std.stdio
Category Symbols
File handles _popen File isFileHandle openNetwork stderr stdin stdout
Reading chunks lines readf readfln readln
Writing toFile write writef writefln writeln
Misc KeepTerminator LockType StdioException

Standard I/O functions that extend core.stdc.stdio. core.stdc.stdio is publically imported when importing std.stdio.

There are three layers of I/O:

  1. The lowest layer is the operating system layer. The two main schemes are Windows and Posix.

  2. C's stdio.h which unifies the two operating system schemes.

  3. std.stdio, this module, unifies the various stdio.h implementations into a high level package for D programs.

Source

std/stdio.d

@copyrightCopyright The D Language Foundation 2007-.@licenseBoost License 1.0.@authorsWalter Bright, Andrei Alexandrescu, Alex Rønne Petersen
stdio
:
(alias template) writeln = std.stdio.writeln(T...)(T args)

Equivalent to write(args, '\n'). Calling writeln without arguments is valid and just prints a newline to the standard output.

Params: args = the items to write to stdout

Throws: In case of an I/O error, throws an $(LREF StdioException). Example: Reads stdin and writes it to stdout with an argument counter.

import std.stdio;

void main() { string line;

    for (size_t count = 0; (line = readln) !is null; count++)
    {
         writeln("Input ", count, ": ", line);
    }

} ---

writeln
;
void std.stdio.writeln!string(string __param_0) @safe

Equivalent to write(args, '\n'). Calling writeln without arguments is valid and just prints a newline to the standard output.

Example

Reads stdin and writes it to stdout with an argument counter.

import std.stdio;

void main()
{
    string line;

    for (size_t count = 0; (line = readln) !is null; count++)
    {
         writeln("Input ", count, ": ", line);
    }
}
@paramargs the items to write to stdout@throwsIn case of an I/O error, throws an StdioException.
writeln
("Running docker container logs with params:");
void std.stdio.writeln!string(string __param_0) @safe

Equivalent to write(args, '\n'). Calling writeln without arguments is valid and just prints a newline to the standard output.

Example

Reads stdin and writes it to stdout with an argument counter.

import std.stdio;

void main()
{
    string line;

    for (size_t count = 0; (line = readln) !is null; count++)
    {
         writeln("Input ", count, ": ", line);
    }
}
@paramargs the items to write to stdout@throwsIn case of an I/O error, throws an StdioException.
writeln
(
string sparkles.base.prettyprint.prettyPrint!(docker.ContainerLogs, void)(in docker.ContainerLogs value, in sparkles.base.prettyprint.PrettyPrintOptions!void opt = PrettyPrintOptions(cast(ushort)2u, cast(ushort)8u, 32u, 80u, true, false)) pure nothrow @safe

Convenience overload that returns a string.

prettyPrint
(this));
} } @(
(struct) sparkles.core_cli.args.uda.Command
Command
("container",
shortDescription: "Manage containers", helpSections: ["description"], )) struct
(struct) docker.Container
Container
{ @
(struct) sparkles.core_cli.args.uda.Subcommands
Subcommands
SumType!(
(struct) docker.ContainerExec
ContainerExec
,
(struct) docker.ContainerLogs
ContainerLogs
,
(struct) docker.ContainerLs
ContainerLs
,
(struct) docker.ContainerRm
ContainerRm
,
(struct) docker.ContainerRun
ContainerRun
,
(struct) docker.ContainerStop
ContainerStop
,
)
(field) std.sumtype.SumType!(ContainerExec, ContainerLogs, ContainerLs, ContainerRm, ContainerRun, ContainerStop) docker.Container.command
command
;
} // ─── image group ───────────────────────────────────────────────────────── @(
(struct) sparkles.core_cli.args.uda.Command
Command
("build",
shortDescription: "Build an image from a Dockerfile", helpSections: ["description"], )) struct
(struct) docker.ImageBuild
ImageBuild
{ @(
(struct) sparkles.core_cli.args.uda.Option
Option
(`t|tag`, description: "Name (and optionally tag) for the built image. Can be specified multiple times."))
(alias) object.string = string
string
[]
(field) string[] docker.ImageBuild.tags
tags
;
@(
(struct) sparkles.core_cli.args.uda.Option
Option
(`f|file`, description: "Name of the Dockerfile to use (default: PATH/Dockerfile)"))
(alias) object.string = string
string
(field) string docker.ImageBuild.file
file
;
@(
(struct) sparkles.core_cli.args.uda.Option
Option
(`build-arg`, description: "Set build-time variables. Can be specified multiple times."))
(alias) object.string = string
string
[]
(field) string[] docker.ImageBuild.buildArgs
buildArgs
;
@(
(struct) sparkles.core_cli.args.uda.Option
Option
(`no-cache`, description: "Do not use cache when building the image"))
bool
(field) bool docker.ImageBuild.noCache
noCache
;
@(
(struct) sparkles.core_cli.args.uda.Option
Option
(`pull`, description: "Always attempt to pull a newer version of each base image"))
bool
(field) bool docker.ImageBuild.pull
pull
;
@(
(struct) sparkles.core_cli.args.uda.Option
Option
(`target`, description: "Set the target build stage for multi-stage builds"))
(alias) object.string = string
string
(field) string docker.ImageBuild.target
target
;
@(
(struct) sparkles.core_cli.args.uda.Option
Option
(`platform`, description: "Set the target platform for the build (e.g. linux/amd64)"))
(alias) object.string = string
string
(field) string docker.ImageBuild.platform
platform
;
@(
(struct) sparkles.core_cli.args.uda.Argument
Argument
("path"))
(alias) object.string = string
string
(field) string docker.ImageBuild.path
path
;
void
void docker.ImageBuild.run()
run
()
{ import
(package) std
std
.
(module) std.stdio
Category Symbols
File handles _popen File isFileHandle openNetwork stderr stdin stdout
Reading chunks lines readf readfln readln
Writing toFile write writef writefln writeln
Misc KeepTerminator LockType StdioException

Standard I/O functions that extend core.stdc.stdio. core.stdc.stdio is publically imported when importing std.stdio.

There are three layers of I/O:

  1. The lowest layer is the operating system layer. The two main schemes are Windows and Posix.

  2. C's stdio.h which unifies the two operating system schemes.

  3. std.stdio, this module, unifies the various stdio.h implementations into a high level package for D programs.

Source

std/stdio.d

@copyrightCopyright The D Language Foundation 2007-.@licenseBoost License 1.0.@authorsWalter Bright, Andrei Alexandrescu, Alex Rønne Petersen
stdio
:
(alias template) writeln = std.stdio.writeln(T...)(T args)

Equivalent to write(args, '\n'). Calling writeln without arguments is valid and just prints a newline to the standard output.

Params: args = the items to write to stdout

Throws: In case of an I/O error, throws an $(LREF StdioException). Example: Reads stdin and writes it to stdout with an argument counter.

import std.stdio;

void main() { string line;

    for (size_t count = 0; (line = readln) !is null; count++)
    {
         writeln("Input ", count, ": ", line);
    }

} ---

writeln
;
void std.stdio.writeln!string(string __param_0) @safe

Equivalent to write(args, '\n'). Calling writeln without arguments is valid and just prints a newline to the standard output.

Example

Reads stdin and writes it to stdout with an argument counter.

import std.stdio;

void main()
{
    string line;

    for (size_t count = 0; (line = readln) !is null; count++)
    {
         writeln("Input ", count, ": ", line);
    }
}
@paramargs the items to write to stdout@throwsIn case of an I/O error, throws an StdioException.
writeln
("Running docker image build with params:");
void std.stdio.writeln!string(string __param_0) @safe

Equivalent to write(args, '\n'). Calling writeln without arguments is valid and just prints a newline to the standard output.

Example

Reads stdin and writes it to stdout with an argument counter.

import std.stdio;

void main()
{
    string line;

    for (size_t count = 0; (line = readln) !is null; count++)
    {
         writeln("Input ", count, ": ", line);
    }
}
@paramargs the items to write to stdout@throwsIn case of an I/O error, throws an StdioException.
writeln
(
string sparkles.base.prettyprint.prettyPrint!(docker.ImageBuild, void)(in docker.ImageBuild value, in sparkles.base.prettyprint.PrettyPrintOptions!void opt = PrettyPrintOptions(cast(ushort)2u, cast(ushort)8u, 32u, 80u, true, false)) pure nothrow @safe

Convenience overload that returns a string.

prettyPrint
(this));
} } @(
(struct) sparkles.core_cli.args.uda.Command
Command
("ls",
aliases: ["list"], shortDescription: "List images", helpSections: ["description"], )) struct
(struct) docker.ImageLs
ImageLs
{ @(
(struct) sparkles.core_cli.args.uda.Option
Option
(`a|all`, description: "Show all images including intermediate layers"))
bool
(field) bool docker.ImageLs.all
all
;
@(
(struct) sparkles.core_cli.args.uda.Option
Option
(`q|quiet`, description: "Only display image IDs"))
bool
(field) bool docker.ImageLs.quiet
quiet
;
@(
(struct) sparkles.core_cli.args.uda.Option
Option
(`digests`, description: "Show image digests"))
bool
(field) bool docker.ImageLs.digests
digests
;
@(
(struct) sparkles.core_cli.args.uda.Option
Option
(`f|filter`, description: "Filter output. Can be specified multiple times."))
(alias) object.string = string
string
[]
(field) string[] docker.ImageLs.filters
filters
;
void
void docker.ImageLs.run()
run
()
{ import
(package) std
std
.
(module) std.stdio
Category Symbols
File handles _popen File isFileHandle openNetwork stderr stdin stdout
Reading chunks lines readf readfln readln
Writing toFile write writef writefln writeln
Misc KeepTerminator LockType StdioException

Standard I/O functions that extend core.stdc.stdio. core.stdc.stdio is publically imported when importing std.stdio.

There are three layers of I/O:

  1. The lowest layer is the operating system layer. The two main schemes are Windows and Posix.

  2. C's stdio.h which unifies the two operating system schemes.

  3. std.stdio, this module, unifies the various stdio.h implementations into a high level package for D programs.

Source

std/stdio.d

@copyrightCopyright The D Language Foundation 2007-.@licenseBoost License 1.0.@authorsWalter Bright, Andrei Alexandrescu, Alex Rønne Petersen
stdio
:
(alias template) writeln = std.stdio.writeln(T...)(T args)

Equivalent to write(args, '\n'). Calling writeln without arguments is valid and just prints a newline to the standard output.

Params: args = the items to write to stdout

Throws: In case of an I/O error, throws an $(LREF StdioException). Example: Reads stdin and writes it to stdout with an argument counter.

import std.stdio;

void main() { string line;

    for (size_t count = 0; (line = readln) !is null; count++)
    {
         writeln("Input ", count, ": ", line);
    }

} ---

writeln
;
void std.stdio.writeln!string(string __param_0) @safe

Equivalent to write(args, '\n'). Calling writeln without arguments is valid and just prints a newline to the standard output.

Example

Reads stdin and writes it to stdout with an argument counter.

import std.stdio;

void main()
{
    string line;

    for (size_t count = 0; (line = readln) !is null; count++)
    {
         writeln("Input ", count, ": ", line);
    }
}
@paramargs the items to write to stdout@throwsIn case of an I/O error, throws an StdioException.
writeln
("Running docker image ls with params:");
void std.stdio.writeln!string(string __param_0) @safe

Equivalent to write(args, '\n'). Calling writeln without arguments is valid and just prints a newline to the standard output.

Example

Reads stdin and writes it to stdout with an argument counter.

import std.stdio;

void main()
{
    string line;

    for (size_t count = 0; (line = readln) !is null; count++)
    {
         writeln("Input ", count, ": ", line);
    }
}
@paramargs the items to write to stdout@throwsIn case of an I/O error, throws an StdioException.
writeln
(
string sparkles.base.prettyprint.prettyPrint!(docker.ImageLs, void)(in docker.ImageLs value, in sparkles.base.prettyprint.PrettyPrintOptions!void opt = PrettyPrintOptions(cast(ushort)2u, cast(ushort)8u, 32u, 80u, true, false)) pure nothrow @safe

Convenience overload that returns a string.

prettyPrint
(this));
} } @(
(struct) sparkles.core_cli.args.uda.Command
Command
("pull",
shortDescription: "Download an image from a registry", helpSections: ["description"], )) struct
(struct) docker.ImagePull
ImagePull
{ @(
(struct) sparkles.core_cli.args.uda.Option
Option
(`a|all-tags`, description: "Download all tagged images in the repository"))
bool
(field) bool docker.ImagePull.allTags
allTags
;
@(
(struct) sparkles.core_cli.args.uda.Option
Option
(`q|quiet`, description: "Suppress verbose output"))
bool
(field) bool docker.ImagePull.quiet
quiet
;
@(
(struct) sparkles.core_cli.args.uda.Option
Option
(`platform`, description: "Set the platform if the server supports multi-platform images"))
(alias) object.string = string
string
(field) string docker.ImagePull.platform
platform
;
@(
(struct) sparkles.core_cli.args.uda.Argument
Argument
("image"))
(alias) object.string = string
string
(field) string docker.ImagePull.image
image
;
void
void docker.ImagePull.run()
run
()
{ import
(package) std
std
.
(module) std.stdio
Category Symbols
File handles _popen File isFileHandle openNetwork stderr stdin stdout
Reading chunks lines readf readfln readln
Writing toFile write writef writefln writeln
Misc KeepTerminator LockType StdioException

Standard I/O functions that extend core.stdc.stdio. core.stdc.stdio is publically imported when importing std.stdio.

There are three layers of I/O:

  1. The lowest layer is the operating system layer. The two main schemes are Windows and Posix.

  2. C's stdio.h which unifies the two operating system schemes.

  3. std.stdio, this module, unifies the various stdio.h implementations into a high level package for D programs.

Source

std/stdio.d

@copyrightCopyright The D Language Foundation 2007-.@licenseBoost License 1.0.@authorsWalter Bright, Andrei Alexandrescu, Alex Rønne Petersen
stdio
:
(alias template) writeln = std.stdio.writeln(T...)(T args)

Equivalent to write(args, '\n'). Calling writeln without arguments is valid and just prints a newline to the standard output.

Params: args = the items to write to stdout

Throws: In case of an I/O error, throws an $(LREF StdioException). Example: Reads stdin and writes it to stdout with an argument counter.

import std.stdio;

void main() { string line;

    for (size_t count = 0; (line = readln) !is null; count++)
    {
         writeln("Input ", count, ": ", line);
    }

} ---

writeln
;
void std.stdio.writeln!string(string __param_0) @safe

Equivalent to write(args, '\n'). Calling writeln without arguments is valid and just prints a newline to the standard output.

Example

Reads stdin and writes it to stdout with an argument counter.

import std.stdio;

void main()
{
    string line;

    for (size_t count = 0; (line = readln) !is null; count++)
    {
         writeln("Input ", count, ": ", line);
    }
}
@paramargs the items to write to stdout@throwsIn case of an I/O error, throws an StdioException.
writeln
("Running docker image pull with params:");
void std.stdio.writeln!string(string __param_0) @safe

Equivalent to write(args, '\n'). Calling writeln without arguments is valid and just prints a newline to the standard output.

Example

Reads stdin and writes it to stdout with an argument counter.

import std.stdio;

void main()
{
    string line;

    for (size_t count = 0; (line = readln) !is null; count++)
    {
         writeln("Input ", count, ": ", line);
    }
}
@paramargs the items to write to stdout@throwsIn case of an I/O error, throws an StdioException.
writeln
(
string sparkles.base.prettyprint.prettyPrint!(docker.ImagePull, void)(in docker.ImagePull value, in sparkles.base.prettyprint.PrettyPrintOptions!void opt = PrettyPrintOptions(cast(ushort)2u, cast(ushort)8u, 32u, 80u, true, false)) pure nothrow @safe

Convenience overload that returns a string.

prettyPrint
(this));
} } @(
(struct) sparkles.core_cli.args.uda.Command
Command
("push",
shortDescription: "Upload an image to a registry", helpSections: ["description"], )) struct
(struct) docker.ImagePush
ImagePush
{ @(
(struct) sparkles.core_cli.args.uda.Option
Option
(`a|all-tags`, description: "Push all tagged images in the repository"))
bool
(field) bool docker.ImagePush.allTags
allTags
;
@(
(struct) sparkles.core_cli.args.uda.Option
Option
(`q|quiet`, description: "Suppress verbose output"))
bool
(field) bool docker.ImagePush.quiet
quiet
;
@(
(struct) sparkles.core_cli.args.uda.Argument
Argument
("image"))
(alias) object.string = string
string
(field) string docker.ImagePush.image
image
;
void
void docker.ImagePush.run()
run
()
{ import
(package) std
std
.
(module) std.stdio
Category Symbols
File handles _popen File isFileHandle openNetwork stderr stdin stdout
Reading chunks lines readf readfln readln
Writing toFile write writef writefln writeln
Misc KeepTerminator LockType StdioException

Standard I/O functions that extend core.stdc.stdio. core.stdc.stdio is publically imported when importing std.stdio.

There are three layers of I/O:

  1. The lowest layer is the operating system layer. The two main schemes are Windows and Posix.

  2. C's stdio.h which unifies the two operating system schemes.

  3. std.stdio, this module, unifies the various stdio.h implementations into a high level package for D programs.

Source

std/stdio.d

@copyrightCopyright The D Language Foundation 2007-.@licenseBoost License 1.0.@authorsWalter Bright, Andrei Alexandrescu, Alex Rønne Petersen
stdio
:
(alias template) writeln = std.stdio.writeln(T...)(T args)

Equivalent to write(args, '\n'). Calling writeln without arguments is valid and just prints a newline to the standard output.

Params: args = the items to write to stdout

Throws: In case of an I/O error, throws an $(LREF StdioException). Example: Reads stdin and writes it to stdout with an argument counter.

import std.stdio;

void main() { string line;

    for (size_t count = 0; (line = readln) !is null; count++)
    {
         writeln("Input ", count, ": ", line);
    }

} ---

writeln
;
void std.stdio.writeln!string(string __param_0) @safe

Equivalent to write(args, '\n'). Calling writeln without arguments is valid and just prints a newline to the standard output.

Example

Reads stdin and writes it to stdout with an argument counter.

import std.stdio;

void main()
{
    string line;

    for (size_t count = 0; (line = readln) !is null; count++)
    {
         writeln("Input ", count, ": ", line);
    }
}
@paramargs the items to write to stdout@throwsIn case of an I/O error, throws an StdioException.
writeln
("Running docker image push with params:");
void std.stdio.writeln!string(string __param_0) @safe

Equivalent to write(args, '\n'). Calling writeln without arguments is valid and just prints a newline to the standard output.

Example

Reads stdin and writes it to stdout with an argument counter.

import std.stdio;

void main()
{
    string line;

    for (size_t count = 0; (line = readln) !is null; count++)
    {
         writeln("Input ", count, ": ", line);
    }
}
@paramargs the items to write to stdout@throwsIn case of an I/O error, throws an StdioException.
writeln
(
string sparkles.base.prettyprint.prettyPrint!(docker.ImagePush, void)(in docker.ImagePush value, in sparkles.base.prettyprint.PrettyPrintOptions!void opt = PrettyPrintOptions(cast(ushort)2u, cast(ushort)8u, 32u, 80u, true, false)) pure nothrow @safe

Convenience overload that returns a string.

prettyPrint
(this));
} } @(
(struct) sparkles.core_cli.args.uda.Command
Command
("rm",
aliases: ["rmi"], shortDescription: "Remove one or more images", helpSections: ["description"], )) struct
(struct) docker.ImageRm
ImageRm
{ @(
(struct) sparkles.core_cli.args.uda.Option
Option
(`f|force`, description: "Force-remove the image even if it has tags or running containers"))
bool
(field) bool docker.ImageRm.force
force
;
@(
(struct) sparkles.core_cli.args.uda.Option
Option
(`no-prune`, description: "Do not delete untagged parent layers"))
bool
(field) bool docker.ImageRm.noPrune
noPrune
;
@(
(struct) sparkles.core_cli.args.uda.Argument
Argument
("images"))
(alias) object.string = string
string
[]
(field) string[] docker.ImageRm.images
images
;
void
void docker.ImageRm.run()
run
()
{ import
(package) std
std
.
(module) std.stdio
Category Symbols
File handles _popen File isFileHandle openNetwork stderr stdin stdout
Reading chunks lines readf readfln readln
Writing toFile write writef writefln writeln
Misc KeepTerminator LockType StdioException

Standard I/O functions that extend core.stdc.stdio. core.stdc.stdio is publically imported when importing std.stdio.

There are three layers of I/O:

  1. The lowest layer is the operating system layer. The two main schemes are Windows and Posix.

  2. C's stdio.h which unifies the two operating system schemes.

  3. std.stdio, this module, unifies the various stdio.h implementations into a high level package for D programs.

Source

std/stdio.d

@copyrightCopyright The D Language Foundation 2007-.@licenseBoost License 1.0.@authorsWalter Bright, Andrei Alexandrescu, Alex Rønne Petersen
stdio
:
(alias template) writeln = std.stdio.writeln(T...)(T args)

Equivalent to write(args, '\n'). Calling writeln without arguments is valid and just prints a newline to the standard output.

Params: args = the items to write to stdout

Throws: In case of an I/O error, throws an $(LREF StdioException). Example: Reads stdin and writes it to stdout with an argument counter.

import std.stdio;

void main() { string line;

    for (size_t count = 0; (line = readln) !is null; count++)
    {
         writeln("Input ", count, ": ", line);
    }

} ---

writeln
;
void std.stdio.writeln!string(string __param_0) @safe

Equivalent to write(args, '\n'). Calling writeln without arguments is valid and just prints a newline to the standard output.

Example

Reads stdin and writes it to stdout with an argument counter.

import std.stdio;

void main()
{
    string line;

    for (size_t count = 0; (line = readln) !is null; count++)
    {
         writeln("Input ", count, ": ", line);
    }
}
@paramargs the items to write to stdout@throwsIn case of an I/O error, throws an StdioException.
writeln
("Running docker image rm with params:");
void std.stdio.writeln!string(string __param_0) @safe

Equivalent to write(args, '\n'). Calling writeln without arguments is valid and just prints a newline to the standard output.

Example

Reads stdin and writes it to stdout with an argument counter.

import std.stdio;

void main()
{
    string line;

    for (size_t count = 0; (line = readln) !is null; count++)
    {
         writeln("Input ", count, ": ", line);
    }
}
@paramargs the items to write to stdout@throwsIn case of an I/O error, throws an StdioException.
writeln
(
string sparkles.base.prettyprint.prettyPrint!(docker.ImageRm, void)(in docker.ImageRm value, in sparkles.base.prettyprint.PrettyPrintOptions!void opt = PrettyPrintOptions(cast(ushort)2u, cast(ushort)8u, 32u, 80u, true, false)) pure nothrow @safe

Convenience overload that returns a string.

prettyPrint
(this));
} } @(
(struct) sparkles.core_cli.args.uda.Command
Command
("image",
shortDescription: "Manage images", helpSections: ["description"], )) struct
(struct) docker.Image
Image
{ @
(struct) sparkles.core_cli.args.uda.Subcommands
Subcommands
SumType!(
(struct) docker.ImageBuild
ImageBuild
,
(struct) docker.ImageLs
ImageLs
,
(struct) docker.ImagePull
ImagePull
,
(struct) docker.ImagePush
ImagePush
,
(struct) docker.ImageRm
ImageRm
)
(field) std.sumtype.SumType!(ImageBuild, ImageLs, ImagePull, ImagePush, ImageRm) docker.Image.command
command
;
} // ─── network group ─────────────────────────────────────────────────────── @(
(struct) sparkles.core_cli.args.uda.Command
Command
("create",
shortDescription: "Create a network", helpSections: ["description"], )) struct
(struct) docker.NetworkCreate
NetworkCreate
{ @(
(struct) sparkles.core_cli.args.uda.Option
Option
(`d|driver`, allowedValues: ["bridge", "overlay", "host", "macvlan", "none"]))
(alias) object.string = string
string
(field) string docker.NetworkCreate.driver
driver
= "bridge";
@(
(struct) sparkles.core_cli.args.uda.Option
Option
(`subnet`, description: "Subnet in CIDR format that represents a network segment. Can be specified multiple times."))
(alias) object.string = string
string
[]
(field) string[] docker.NetworkCreate.subnets
subnets
;
@(
(struct) sparkles.core_cli.args.uda.Option
Option
(`gateway`, description: "IPv4/IPv6 gateway for the master subnet. Can be specified multiple times."))
(alias) object.string = string
string
[]
(field) string[] docker.NetworkCreate.gateways
gateways
;
@(
(struct) sparkles.core_cli.args.uda.Option
Option
(`l|label`, description: "Set metadata on the network. Can be specified multiple times."))
(alias) object.string = string
string
[]
(field) string[] docker.NetworkCreate.labels
labels
;
@(
(struct) sparkles.core_cli.args.uda.Option
Option
(`internal`, description: "Restrict external access to the network"))
bool
(field) bool docker.NetworkCreate.internal
internal
;
@(
(struct) sparkles.core_cli.args.uda.Argument
Argument
("name"))
(alias) object.string = string
string
(field) string docker.NetworkCreate.name
name
;
void
void docker.NetworkCreate.run()
run
()
{ import
(package) std
std
.
(module) std.stdio
Category Symbols
File handles _popen File isFileHandle openNetwork stderr stdin stdout
Reading chunks lines readf readfln readln
Writing toFile write writef writefln writeln
Misc KeepTerminator LockType StdioException

Standard I/O functions that extend core.stdc.stdio. core.stdc.stdio is publically imported when importing std.stdio.

There are three layers of I/O:

  1. The lowest layer is the operating system layer. The two main schemes are Windows and Posix.

  2. C's stdio.h which unifies the two operating system schemes.

  3. std.stdio, this module, unifies the various stdio.h implementations into a high level package for D programs.

Source

std/stdio.d

@copyrightCopyright The D Language Foundation 2007-.@licenseBoost License 1.0.@authorsWalter Bright, Andrei Alexandrescu, Alex Rønne Petersen
stdio
:
(alias template) writeln = std.stdio.writeln(T...)(T args)

Equivalent to write(args, '\n'). Calling writeln without arguments is valid and just prints a newline to the standard output.

Params: args = the items to write to stdout

Throws: In case of an I/O error, throws an $(LREF StdioException). Example: Reads stdin and writes it to stdout with an argument counter.

import std.stdio;

void main() { string line;

    for (size_t count = 0; (line = readln) !is null; count++)
    {
         writeln("Input ", count, ": ", line);
    }

} ---

writeln
;
void std.stdio.writeln!string(string __param_0) @safe

Equivalent to write(args, '\n'). Calling writeln without arguments is valid and just prints a newline to the standard output.

Example

Reads stdin and writes it to stdout with an argument counter.

import std.stdio;

void main()
{
    string line;

    for (size_t count = 0; (line = readln) !is null; count++)
    {
         writeln("Input ", count, ": ", line);
    }
}
@paramargs the items to write to stdout@throwsIn case of an I/O error, throws an StdioException.
writeln
("Running docker network create with params:");
void std.stdio.writeln!string(string __param_0) @safe

Equivalent to write(args, '\n'). Calling writeln without arguments is valid and just prints a newline to the standard output.

Example

Reads stdin and writes it to stdout with an argument counter.

import std.stdio;

void main()
{
    string line;

    for (size_t count = 0; (line = readln) !is null; count++)
    {
         writeln("Input ", count, ": ", line);
    }
}
@paramargs the items to write to stdout@throwsIn case of an I/O error, throws an StdioException.
writeln
(
string sparkles.base.prettyprint.prettyPrint!(docker.NetworkCreate, void)(in docker.NetworkCreate value, in sparkles.base.prettyprint.PrettyPrintOptions!void opt = PrettyPrintOptions(cast(ushort)2u, cast(ushort)8u, 32u, 80u, true, false)) pure nothrow @safe

Convenience overload that returns a string.

prettyPrint
(this));
} } @(
(struct) sparkles.core_cli.args.uda.Command
Command
("ls",
aliases: ["list"], shortDescription: "List networks", helpSections: ["description"], )) struct
(struct) docker.NetworkLs
NetworkLs
{ @(
(struct) sparkles.core_cli.args.uda.Option
Option
(`q|quiet`, description: "Only display network IDs"))
bool
(field) bool docker.NetworkLs.quiet
quiet
;
@(
(struct) sparkles.core_cli.args.uda.Option
Option
(`f|filter`, description: "Filter output. Can be specified multiple times."))
(alias) object.string = string
string
[]
(field) string[] docker.NetworkLs.filters
filters
;
void
void docker.NetworkLs.run()
run
()
{ import
(package) std
std
.
(module) std.stdio
Category Symbols
File handles _popen File isFileHandle openNetwork stderr stdin stdout
Reading chunks lines readf readfln readln
Writing toFile write writef writefln writeln
Misc KeepTerminator LockType StdioException

Standard I/O functions that extend core.stdc.stdio. core.stdc.stdio is publically imported when importing std.stdio.

There are three layers of I/O:

  1. The lowest layer is the operating system layer. The two main schemes are Windows and Posix.

  2. C's stdio.h which unifies the two operating system schemes.

  3. std.stdio, this module, unifies the various stdio.h implementations into a high level package for D programs.

Source

std/stdio.d

@copyrightCopyright The D Language Foundation 2007-.@licenseBoost License 1.0.@authorsWalter Bright, Andrei Alexandrescu, Alex Rønne Petersen
stdio
:
(alias template) writeln = std.stdio.writeln(T...)(T args)

Equivalent to write(args, '\n'). Calling writeln without arguments is valid and just prints a newline to the standard output.

Params: args = the items to write to stdout

Throws: In case of an I/O error, throws an $(LREF StdioException). Example: Reads stdin and writes it to stdout with an argument counter.

import std.stdio;

void main() { string line;

    for (size_t count = 0; (line = readln) !is null; count++)
    {
         writeln("Input ", count, ": ", line);
    }

} ---

writeln
;
void std.stdio.writeln!string(string __param_0) @safe

Equivalent to write(args, '\n'). Calling writeln without arguments is valid and just prints a newline to the standard output.

Example

Reads stdin and writes it to stdout with an argument counter.

import std.stdio;

void main()
{
    string line;

    for (size_t count = 0; (line = readln) !is null; count++)
    {
         writeln("Input ", count, ": ", line);
    }
}
@paramargs the items to write to stdout@throwsIn case of an I/O error, throws an StdioException.
writeln
("Running docker network ls with params:");
void std.stdio.writeln!string(string __param_0) @safe

Equivalent to write(args, '\n'). Calling writeln without arguments is valid and just prints a newline to the standard output.

Example

Reads stdin and writes it to stdout with an argument counter.

import std.stdio;

void main()
{
    string line;

    for (size_t count = 0; (line = readln) !is null; count++)
    {
         writeln("Input ", count, ": ", line);
    }
}
@paramargs the items to write to stdout@throwsIn case of an I/O error, throws an StdioException.
writeln
(
string sparkles.base.prettyprint.prettyPrint!(docker.NetworkLs, void)(in docker.NetworkLs value, in sparkles.base.prettyprint.PrettyPrintOptions!void opt = PrettyPrintOptions(cast(ushort)2u, cast(ushort)8u, 32u, 80u, true, false)) pure nothrow @safe

Convenience overload that returns a string.

prettyPrint
(this));
} } @(
(struct) sparkles.core_cli.args.uda.Command
Command
("inspect",
shortDescription: "Display detailed information on one or more networks", helpSections: ["description"], )) struct
(struct) docker.NetworkInspect
NetworkInspect
{ @(
(struct) sparkles.core_cli.args.uda.Option
Option
(`f|format`, description: "Format the output using a Go template"))
(alias) object.string = string
string
(field) string docker.NetworkInspect.format
format
;
@(
(struct) sparkles.core_cli.args.uda.Option
Option
(`v|verbose`, description: "Verbose output for diagnostics"))
bool
(field) bool docker.NetworkInspect.verbose
verbose
;
@(
(struct) sparkles.core_cli.args.uda.Argument
Argument
("networks"))
(alias) object.string = string
string
[]
(field) string[] docker.NetworkInspect.networks
networks
;
void
void docker.NetworkInspect.run()
run
()
{ import
(package) std
std
.
(module) std.stdio
Category Symbols
File handles _popen File isFileHandle openNetwork stderr stdin stdout
Reading chunks lines readf readfln readln
Writing toFile write writef writefln writeln
Misc KeepTerminator LockType StdioException

Standard I/O functions that extend core.stdc.stdio. core.stdc.stdio is publically imported when importing std.stdio.

There are three layers of I/O:

  1. The lowest layer is the operating system layer. The two main schemes are Windows and Posix.

  2. C's stdio.h which unifies the two operating system schemes.

  3. std.stdio, this module, unifies the various stdio.h implementations into a high level package for D programs.

Source

std/stdio.d

@copyrightCopyright The D Language Foundation 2007-.@licenseBoost License 1.0.@authorsWalter Bright, Andrei Alexandrescu, Alex Rønne Petersen
stdio
:
(alias template) writeln = std.stdio.writeln(T...)(T args)

Equivalent to write(args, '\n'). Calling writeln without arguments is valid and just prints a newline to the standard output.

Params: args = the items to write to stdout

Throws: In case of an I/O error, throws an $(LREF StdioException). Example: Reads stdin and writes it to stdout with an argument counter.

import std.stdio;

void main() { string line;

    for (size_t count = 0; (line = readln) !is null; count++)
    {
         writeln("Input ", count, ": ", line);
    }

} ---

writeln
;
void std.stdio.writeln!string(string __param_0) @safe

Equivalent to write(args, '\n'). Calling writeln without arguments is valid and just prints a newline to the standard output.

Example

Reads stdin and writes it to stdout with an argument counter.

import std.stdio;

void main()
{
    string line;

    for (size_t count = 0; (line = readln) !is null; count++)
    {
         writeln("Input ", count, ": ", line);
    }
}
@paramargs the items to write to stdout@throwsIn case of an I/O error, throws an StdioException.
writeln
("Running docker network inspect with params:");
void std.stdio.writeln!string(string __param_0) @safe

Equivalent to write(args, '\n'). Calling writeln without arguments is valid and just prints a newline to the standard output.

Example

Reads stdin and writes it to stdout with an argument counter.

import std.stdio;

void main()
{
    string line;

    for (size_t count = 0; (line = readln) !is null; count++)
    {
         writeln("Input ", count, ": ", line);
    }
}
@paramargs the items to write to stdout@throwsIn case of an I/O error, throws an StdioException.
writeln
(
string sparkles.base.prettyprint.prettyPrint!(docker.NetworkInspect, void)(in docker.NetworkInspect value, in sparkles.base.prettyprint.PrettyPrintOptions!void opt = PrettyPrintOptions(cast(ushort)2u, cast(ushort)8u, 32u, 80u, true, false)) pure nothrow @safe

Convenience overload that returns a string.

prettyPrint
(this));
} } @(
(struct) sparkles.core_cli.args.uda.Command
Command
("connect",
shortDescription: "Connect a container to a network", helpSections: ["description"], )) struct
(struct) docker.NetworkConnect
NetworkConnect
{ @(
(struct) sparkles.core_cli.args.uda.Option
Option
(`alias`, description: "Add a network-scoped alias for the container. Can be specified multiple times."))
(alias) object.string = string
string
[]
(field) string[] docker.NetworkConnect.aliases
aliases
;
@(
(struct) sparkles.core_cli.args.uda.Option
Option
(`ip`, description: "IPv4 address (e.g. 172.30.100.104) to assign to the container"))
(alias) object.string = string
string
(field) string docker.NetworkConnect.ip
ip
;
@(
(struct) sparkles.core_cli.args.uda.Argument
Argument
("network"))
(alias) object.string = string
string
(field) string docker.NetworkConnect.network
network
;
@(
(struct) sparkles.core_cli.args.uda.Argument
Argument
("container"))
(alias) object.string = string
string
(field) string docker.NetworkConnect.container
container
;
void
void docker.NetworkConnect.run()
run
()
{ import
(package) std
std
.
(module) std.stdio
Category Symbols
File handles _popen File isFileHandle openNetwork stderr stdin stdout
Reading chunks lines readf readfln readln
Writing toFile write writef writefln writeln
Misc KeepTerminator LockType StdioException

Standard I/O functions that extend core.stdc.stdio. core.stdc.stdio is publically imported when importing std.stdio.

There are three layers of I/O:

  1. The lowest layer is the operating system layer. The two main schemes are Windows and Posix.

  2. C's stdio.h which unifies the two operating system schemes.

  3. std.stdio, this module, unifies the various stdio.h implementations into a high level package for D programs.

Source

std/stdio.d

@copyrightCopyright The D Language Foundation 2007-.@licenseBoost License 1.0.@authorsWalter Bright, Andrei Alexandrescu, Alex Rønne Petersen
stdio
:
(alias template) writeln = std.stdio.writeln(T...)(T args)

Equivalent to write(args, '\n'). Calling writeln without arguments is valid and just prints a newline to the standard output.

Params: args = the items to write to stdout

Throws: In case of an I/O error, throws an $(LREF StdioException). Example: Reads stdin and writes it to stdout with an argument counter.

import std.stdio;

void main() { string line;

    for (size_t count = 0; (line = readln) !is null; count++)
    {
         writeln("Input ", count, ": ", line);
    }

} ---

writeln
;
void std.stdio.writeln!string(string __param_0) @safe

Equivalent to write(args, '\n'). Calling writeln without arguments is valid and just prints a newline to the standard output.

Example

Reads stdin and writes it to stdout with an argument counter.

import std.stdio;

void main()
{
    string line;

    for (size_t count = 0; (line = readln) !is null; count++)
    {
         writeln("Input ", count, ": ", line);
    }
}
@paramargs the items to write to stdout@throwsIn case of an I/O error, throws an StdioException.
writeln
("Running docker network connect with params:");
void std.stdio.writeln!string(string __param_0) @safe

Equivalent to write(args, '\n'). Calling writeln without arguments is valid and just prints a newline to the standard output.

Example

Reads stdin and writes it to stdout with an argument counter.

import std.stdio;

void main()
{
    string line;

    for (size_t count = 0; (line = readln) !is null; count++)
    {
         writeln("Input ", count, ": ", line);
    }
}
@paramargs the items to write to stdout@throwsIn case of an I/O error, throws an StdioException.
writeln
(
string sparkles.base.prettyprint.prettyPrint!(docker.NetworkConnect, void)(in docker.NetworkConnect value, in sparkles.base.prettyprint.PrettyPrintOptions!void opt = PrettyPrintOptions(cast(ushort)2u, cast(ushort)8u, 32u, 80u, true, false)) pure nothrow @safe

Convenience overload that returns a string.

prettyPrint
(this));
} } @(
(struct) sparkles.core_cli.args.uda.Command
Command
("rm",
aliases: ["remove"], shortDescription: "Remove one or more networks", helpSections: ["description"], )) struct
(struct) docker.NetworkRm
NetworkRm
{ @(
(struct) sparkles.core_cli.args.uda.Option
Option
(`f|force`, description: "Do not error out when a network does not exist"))
bool
(field) bool docker.NetworkRm.force
force
;
@(
(struct) sparkles.core_cli.args.uda.Argument
Argument
("networks"))
(alias) object.string = string
string
[]
(field) string[] docker.NetworkRm.networks
networks
;
void
void docker.NetworkRm.run()
run
()
{ import
(package) std
std
.
(module) std.stdio
Category Symbols
File handles _popen File isFileHandle openNetwork stderr stdin stdout
Reading chunks lines readf readfln readln
Writing toFile write writef writefln writeln
Misc KeepTerminator LockType StdioException

Standard I/O functions that extend core.stdc.stdio. core.stdc.stdio is publically imported when importing std.stdio.

There are three layers of I/O:

  1. The lowest layer is the operating system layer. The two main schemes are Windows and Posix.

  2. C's stdio.h which unifies the two operating system schemes.

  3. std.stdio, this module, unifies the various stdio.h implementations into a high level package for D programs.

Source

std/stdio.d

@copyrightCopyright The D Language Foundation 2007-.@licenseBoost License 1.0.@authorsWalter Bright, Andrei Alexandrescu, Alex Rønne Petersen
stdio
:
(alias template) writeln = std.stdio.writeln(T...)(T args)

Equivalent to write(args, '\n'). Calling writeln without arguments is valid and just prints a newline to the standard output.

Params: args = the items to write to stdout

Throws: In case of an I/O error, throws an $(LREF StdioException). Example: Reads stdin and writes it to stdout with an argument counter.

import std.stdio;

void main() { string line;

    for (size_t count = 0; (line = readln) !is null; count++)
    {
         writeln("Input ", count, ": ", line);
    }

} ---

writeln
;
void std.stdio.writeln!string(string __param_0) @safe

Equivalent to write(args, '\n'). Calling writeln without arguments is valid and just prints a newline to the standard output.

Example

Reads stdin and writes it to stdout with an argument counter.

import std.stdio;

void main()
{
    string line;

    for (size_t count = 0; (line = readln) !is null; count++)
    {
         writeln("Input ", count, ": ", line);
    }
}
@paramargs the items to write to stdout@throwsIn case of an I/O error, throws an StdioException.
writeln
("Running docker network rm with params:");
void std.stdio.writeln!string(string __param_0) @safe

Equivalent to write(args, '\n'). Calling writeln without arguments is valid and just prints a newline to the standard output.

Example

Reads stdin and writes it to stdout with an argument counter.

import std.stdio;

void main()
{
    string line;

    for (size_t count = 0; (line = readln) !is null; count++)
    {
         writeln("Input ", count, ": ", line);
    }
}
@paramargs the items to write to stdout@throwsIn case of an I/O error, throws an StdioException.
writeln
(
string sparkles.base.prettyprint.prettyPrint!(docker.NetworkRm, void)(in docker.NetworkRm value, in sparkles.base.prettyprint.PrettyPrintOptions!void opt = PrettyPrintOptions(cast(ushort)2u, cast(ushort)8u, 32u, 80u, true, false)) pure nothrow @safe

Convenience overload that returns a string.

prettyPrint
(this));
} } @(
(struct) sparkles.core_cli.args.uda.Command
Command
("network",
shortDescription: "Manage networks", helpSections: ["description"], )) struct
(struct) docker.Network
Network
{ @
(struct) sparkles.core_cli.args.uda.Subcommands
Subcommands
SumType!(
(struct) docker.NetworkConnect
NetworkConnect
,
(struct) docker.NetworkCreate
NetworkCreate
,
(struct) docker.NetworkInspect
NetworkInspect
,
(struct) docker.NetworkLs
NetworkLs
,
(struct) docker.NetworkRm
NetworkRm
)
(field) std.sumtype.SumType!(NetworkConnect, NetworkCreate, NetworkInspect, NetworkLs, NetworkRm) docker.Network.command
command
;
} // ─── volume group ──────────────────────────────────────────────────────── @(
(struct) sparkles.core_cli.args.uda.Command
Command
("create",
shortDescription: "Create a volume", helpSections: ["description"], )) struct
(struct) docker.VolumeCreate
VolumeCreate
{ @(
(struct) sparkles.core_cli.args.uda.Option
Option
(`d|driver`, allowedValues: ["local", "nfs", "tmpfs"]))
(alias) object.string = string
string
(field) string docker.VolumeCreate.driver
driver
= "local";
@(
(struct) sparkles.core_cli.args.uda.Option
Option
(`o|opt`, description: "Set driver-specific options. Can be specified multiple times."))
(alias) object.string = string
string
[]
(field) string[] docker.VolumeCreate.driverOpts
driverOpts
;
@(
(struct) sparkles.core_cli.args.uda.Option
Option
(`l|label`, description: "Set metadata on the volume. Can be specified multiple times."))
(alias) object.string = string
string
[]
(field) string[] docker.VolumeCreate.labels
labels
;
@(
(struct) sparkles.core_cli.args.uda.Argument
Argument
("name", optional: true))
(alias) object.string = string
string
(field) string docker.VolumeCreate.name
name
;
void
void docker.VolumeCreate.run()
run
()
{ import
(package) std
std
.
(module) std.stdio
Category Symbols
File handles _popen File isFileHandle openNetwork stderr stdin stdout
Reading chunks lines readf readfln readln
Writing toFile write writef writefln writeln
Misc KeepTerminator LockType StdioException

Standard I/O functions that extend core.stdc.stdio. core.stdc.stdio is publically imported when importing std.stdio.

There are three layers of I/O:

  1. The lowest layer is the operating system layer. The two main schemes are Windows and Posix.

  2. C's stdio.h which unifies the two operating system schemes.

  3. std.stdio, this module, unifies the various stdio.h implementations into a high level package for D programs.

Source

std/stdio.d

@copyrightCopyright The D Language Foundation 2007-.@licenseBoost License 1.0.@authorsWalter Bright, Andrei Alexandrescu, Alex Rønne Petersen
stdio
:
(alias template) writeln = std.stdio.writeln(T...)(T args)

Equivalent to write(args, '\n'). Calling writeln without arguments is valid and just prints a newline to the standard output.

Params: args = the items to write to stdout

Throws: In case of an I/O error, throws an $(LREF StdioException). Example: Reads stdin and writes it to stdout with an argument counter.

import std.stdio;

void main() { string line;

    for (size_t count = 0; (line = readln) !is null; count++)
    {
         writeln("Input ", count, ": ", line);
    }

} ---

writeln
;
void std.stdio.writeln!string(string __param_0) @safe

Equivalent to write(args, '\n'). Calling writeln without arguments is valid and just prints a newline to the standard output.

Example

Reads stdin and writes it to stdout with an argument counter.

import std.stdio;

void main()
{
    string line;

    for (size_t count = 0; (line = readln) !is null; count++)
    {
         writeln("Input ", count, ": ", line);
    }
}
@paramargs the items to write to stdout@throwsIn case of an I/O error, throws an StdioException.
writeln
("Running docker volume create with params:");
void std.stdio.writeln!string(string __param_0) @safe

Equivalent to write(args, '\n'). Calling writeln without arguments is valid and just prints a newline to the standard output.

Example

Reads stdin and writes it to stdout with an argument counter.

import std.stdio;

void main()
{
    string line;

    for (size_t count = 0; (line = readln) !is null; count++)
    {
         writeln("Input ", count, ": ", line);
    }
}
@paramargs the items to write to stdout@throwsIn case of an I/O error, throws an StdioException.
writeln
(
string sparkles.base.prettyprint.prettyPrint!(docker.VolumeCreate, void)(in docker.VolumeCreate value, in sparkles.base.prettyprint.PrettyPrintOptions!void opt = PrettyPrintOptions(cast(ushort)2u, cast(ushort)8u, 32u, 80u, true, false)) pure nothrow @safe

Convenience overload that returns a string.

prettyPrint
(this));
} } @(
(struct) sparkles.core_cli.args.uda.Command
Command
("ls",
aliases: ["list"], shortDescription: "List volumes", helpSections: ["description"], )) struct
(struct) docker.VolumeLs
VolumeLs
{ @(
(struct) sparkles.core_cli.args.uda.Option
Option
(`q|quiet`, description: "Only display volume names"))
bool
(field) bool docker.VolumeLs.quiet
quiet
;
@(
(struct) sparkles.core_cli.args.uda.Option
Option
(`f|filter`, description: "Filter output. Can be specified multiple times."))
(alias) object.string = string
string
[]
(field) string[] docker.VolumeLs.filters
filters
;
void
void docker.VolumeLs.run!(sparkles.core_cli.args.internal.CommandNode!(Docker))(in sparkles.core_cli.args.internal.CommandNode!(Docker) program) @system
run
(Program)(in
(alias) Program = sparkles.core_cli.args.internal.CommandNode!(Docker)
Program
(parameter) const(sparkles.core_cli.args.internal.CommandNode!(Docker)) program
program
) =>
void sparkles.base.styled_template.styledWriteln!(core.interpolation.InterpolatedLiteral!"Running {bold docker volume ls} with params:\n globals: --host=", core.interpolation.InterpolatedExpression!"prettyPrint(program.value.hosts)", string, core.interpolation.InterpolatedLiteral!", --log-level='", core.interpolation.InterpolatedExpression!"program.value.logLevel", string, core.interpolation.InterpolatedLiteral!"', --debug=", core.interpolation.InterpolatedExpression!"program.value.debug_", const(bool), core.interpolation.InterpolatedLiteral!"\n params: ", core.interpolation.InterpolatedExpression!"prettyPrint(this)", string)(core.interpolation.InterpolationHeader header, core.interpolation.InterpolatedLiteral!"Running {bold docker volume ls} with params:\n globals: --host=" __param_1, core.interpolation.InterpolatedExpression!"prettyPrint(program.value.hosts)" __param_2, string __param_3, core.interpolation.InterpolatedLiteral!", --log-level='" __param_4, core.interpolation.InterpolatedExpression!"program.value.logLevel" __param_5, string __param_6, core.interpolation.InterpolatedLiteral!"', --debug=" __param_7, core.interpolation.InterpolatedExpression!"program.value.debug_" __param_8, const(bool) __param_9, core.interpolation.InterpolatedLiteral!"\n params: " __param_10, core.interpolation.InterpolatedExpression!"prettyPrint(this)" __param_11, string __param_12, core.interpolation.InterpolationFooter footer) @system

ditto — defaults to ColorDepth.trueColor.

styledWriteln
(i"Running {bold docker volume ls} with params:
globals: --host=$(prettyPrint(program.value.hosts)), --log-level='$(program.value.logLevel)', --debug=$(program.value.debug_) params: $(prettyPrint(this))"); } @(
(struct) sparkles.core_cli.args.uda.Command
Command
("inspect",
shortDescription: "Display detailed information on one or more volumes", helpSections: ["description"], )) struct
(struct) docker.VolumeInspect
VolumeInspect
{ @(
(struct) sparkles.core_cli.args.uda.Option
Option
(`f|format`, description: "Format the output using a Go template"))
(alias) object.string = string
string
(field) string docker.VolumeInspect.format
format
;
@(
(struct) sparkles.core_cli.args.uda.Argument
Argument
("volumes"))
(alias) object.string = string
string
[]
(field) string[] docker.VolumeInspect.volumes
volumes
;
void
void docker.VolumeInspect.run()
run
()
{ import
(package) std
std
.
(module) std.stdio
Category Symbols
File handles _popen File isFileHandle openNetwork stderr stdin stdout
Reading chunks lines readf readfln readln
Writing toFile write writef writefln writeln
Misc KeepTerminator LockType StdioException

Standard I/O functions that extend core.stdc.stdio. core.stdc.stdio is publically imported when importing std.stdio.

There are three layers of I/O:

  1. The lowest layer is the operating system layer. The two main schemes are Windows and Posix.

  2. C's stdio.h which unifies the two operating system schemes.

  3. std.stdio, this module, unifies the various stdio.h implementations into a high level package for D programs.

Source

std/stdio.d

@copyrightCopyright The D Language Foundation 2007-.@licenseBoost License 1.0.@authorsWalter Bright, Andrei Alexandrescu, Alex Rønne Petersen
stdio
:
(alias template) writeln = std.stdio.writeln(T...)(T args)

Equivalent to write(args, '\n'). Calling writeln without arguments is valid and just prints a newline to the standard output.

Params: args = the items to write to stdout

Throws: In case of an I/O error, throws an $(LREF StdioException). Example: Reads stdin and writes it to stdout with an argument counter.

import std.stdio;

void main() { string line;

    for (size_t count = 0; (line = readln) !is null; count++)
    {
         writeln("Input ", count, ": ", line);
    }

} ---

writeln
;
void std.stdio.writeln!string(string __param_0) @safe

Equivalent to write(args, '\n'). Calling writeln without arguments is valid and just prints a newline to the standard output.

Example

Reads stdin and writes it to stdout with an argument counter.

import std.stdio;

void main()
{
    string line;

    for (size_t count = 0; (line = readln) !is null; count++)
    {
         writeln("Input ", count, ": ", line);
    }
}
@paramargs the items to write to stdout@throwsIn case of an I/O error, throws an StdioException.
writeln
("Running docker volume inspect with params:");
void std.stdio.writeln!string(string __param_0) @safe

Equivalent to write(args, '\n'). Calling writeln without arguments is valid and just prints a newline to the standard output.

Example

Reads stdin and writes it to stdout with an argument counter.

import std.stdio;

void main()
{
    string line;

    for (size_t count = 0; (line = readln) !is null; count++)
    {
         writeln("Input ", count, ": ", line);
    }
}
@paramargs the items to write to stdout@throwsIn case of an I/O error, throws an StdioException.
writeln
(
string sparkles.base.prettyprint.prettyPrint!(docker.VolumeInspect, void)(in docker.VolumeInspect value, in sparkles.base.prettyprint.PrettyPrintOptions!void opt = PrettyPrintOptions(cast(ushort)2u, cast(ushort)8u, 32u, 80u, true, false)) pure nothrow @safe

Convenience overload that returns a string.

prettyPrint
(this));
} } @(
(struct) sparkles.core_cli.args.uda.Command
Command
("prune",
shortDescription: "Remove all unused local volumes", helpSections: ["description"], )) struct
(struct) docker.VolumePrune
VolumePrune
{ @(
(struct) sparkles.core_cli.args.uda.Option
Option
(`f|force`, description: "Do not prompt for confirmation"))
bool
(field) bool docker.VolumePrune.force
force
;
@(
(struct) sparkles.core_cli.args.uda.Option
Option
(`a|all`, description: "Remove all unused volumes, not just anonymous ones"))
bool
(field) bool docker.VolumePrune.all
all
;
void
void docker.VolumePrune.run()
run
()
{ import
(package) std
std
.
(module) std.stdio
Category Symbols
File handles _popen File isFileHandle openNetwork stderr stdin stdout
Reading chunks lines readf readfln readln
Writing toFile write writef writefln writeln
Misc KeepTerminator LockType StdioException

Standard I/O functions that extend core.stdc.stdio. core.stdc.stdio is publically imported when importing std.stdio.

There are three layers of I/O:

  1. The lowest layer is the operating system layer. The two main schemes are Windows and Posix.

  2. C's stdio.h which unifies the two operating system schemes.

  3. std.stdio, this module, unifies the various stdio.h implementations into a high level package for D programs.

Source

std/stdio.d

@copyrightCopyright The D Language Foundation 2007-.@licenseBoost License 1.0.@authorsWalter Bright, Andrei Alexandrescu, Alex Rønne Petersen
stdio
:
(alias template) writeln = std.stdio.writeln(T...)(T args)

Equivalent to write(args, '\n'). Calling writeln without arguments is valid and just prints a newline to the standard output.

Params: args = the items to write to stdout

Throws: In case of an I/O error, throws an $(LREF StdioException). Example: Reads stdin and writes it to stdout with an argument counter.

import std.stdio;

void main() { string line;

    for (size_t count = 0; (line = readln) !is null; count++)
    {
         writeln("Input ", count, ": ", line);
    }

} ---

writeln
;
void std.stdio.writeln!string(string __param_0) @safe

Equivalent to write(args, '\n'). Calling writeln without arguments is valid and just prints a newline to the standard output.

Example

Reads stdin and writes it to stdout with an argument counter.

import std.stdio;

void main()
{
    string line;

    for (size_t count = 0; (line = readln) !is null; count++)
    {
         writeln("Input ", count, ": ", line);
    }
}
@paramargs the items to write to stdout@throwsIn case of an I/O error, throws an StdioException.
writeln
("Running docker volume prune with params:");
void std.stdio.writeln!string(string __param_0) @safe

Equivalent to write(args, '\n'). Calling writeln without arguments is valid and just prints a newline to the standard output.

Example

Reads stdin and writes it to stdout with an argument counter.

import std.stdio;

void main()
{
    string line;

    for (size_t count = 0; (line = readln) !is null; count++)
    {
         writeln("Input ", count, ": ", line);
    }
}
@paramargs the items to write to stdout@throwsIn case of an I/O error, throws an StdioException.
writeln
(
string sparkles.base.prettyprint.prettyPrint!(docker.VolumePrune, void)(in docker.VolumePrune value, in sparkles.base.prettyprint.PrettyPrintOptions!void opt = PrettyPrintOptions(cast(ushort)2u, cast(ushort)8u, 32u, 80u, true, false)) pure nothrow @safe

Convenience overload that returns a string.

prettyPrint
(this));
} } @(
(struct) sparkles.core_cli.args.uda.Command
Command
("rm",
aliases: ["remove"], shortDescription: "Remove one or more volumes", helpSections: ["description"], )) struct
(struct) docker.VolumeRm
VolumeRm
{ @(
(struct) sparkles.core_cli.args.uda.Option
Option
(`f|force`, description: "Force the removal of one or more volumes"))
bool
(field) bool docker.VolumeRm.force
force
;
@(
(struct) sparkles.core_cli.args.uda.Argument
Argument
("volumes"))
(alias) object.string = string
string
[]
(field) string[] docker.VolumeRm.volumes
volumes
;
void
void docker.VolumeRm.run()
run
()
{ import
(package) std
std
.
(module) std.stdio
Category Symbols
File handles _popen File isFileHandle openNetwork stderr stdin stdout
Reading chunks lines readf readfln readln
Writing toFile write writef writefln writeln
Misc KeepTerminator LockType StdioException

Standard I/O functions that extend core.stdc.stdio. core.stdc.stdio is publically imported when importing std.stdio.

There are three layers of I/O:

  1. The lowest layer is the operating system layer. The two main schemes are Windows and Posix.

  2. C's stdio.h which unifies the two operating system schemes.

  3. std.stdio, this module, unifies the various stdio.h implementations into a high level package for D programs.

Source

std/stdio.d

@copyrightCopyright The D Language Foundation 2007-.@licenseBoost License 1.0.@authorsWalter Bright, Andrei Alexandrescu, Alex Rønne Petersen
stdio
:
(alias template) writeln = std.stdio.writeln(T...)(T args)

Equivalent to write(args, '\n'). Calling writeln without arguments is valid and just prints a newline to the standard output.

Params: args = the items to write to stdout

Throws: In case of an I/O error, throws an $(LREF StdioException). Example: Reads stdin and writes it to stdout with an argument counter.

import std.stdio;

void main() { string line;

    for (size_t count = 0; (line = readln) !is null; count++)
    {
         writeln("Input ", count, ": ", line);
    }

} ---

writeln
;
void std.stdio.writeln!string(string __param_0) @safe

Equivalent to write(args, '\n'). Calling writeln without arguments is valid and just prints a newline to the standard output.

Example

Reads stdin and writes it to stdout with an argument counter.

import std.stdio;

void main()
{
    string line;

    for (size_t count = 0; (line = readln) !is null; count++)
    {
         writeln("Input ", count, ": ", line);
    }
}
@paramargs the items to write to stdout@throwsIn case of an I/O error, throws an StdioException.
writeln
("Running docker volume rm with params:");
void std.stdio.writeln!string(string __param_0) @safe

Equivalent to write(args, '\n'). Calling writeln without arguments is valid and just prints a newline to the standard output.

Example

Reads stdin and writes it to stdout with an argument counter.

import std.stdio;

void main()
{
    string line;

    for (size_t count = 0; (line = readln) !is null; count++)
    {
         writeln("Input ", count, ": ", line);
    }
}
@paramargs the items to write to stdout@throwsIn case of an I/O error, throws an StdioException.
writeln
(
string sparkles.base.prettyprint.prettyPrint!(docker.VolumeRm, void)(in docker.VolumeRm value, in sparkles.base.prettyprint.PrettyPrintOptions!void opt = PrettyPrintOptions(cast(ushort)2u, cast(ushort)8u, 32u, 80u, true, false)) pure nothrow @safe

Convenience overload that returns a string.

prettyPrint
(this));
} } @(
(struct) sparkles.core_cli.args.uda.Command
Command
("volume",
shortDescription: "Manage volumes", helpSections: ["description"], )) struct
(struct) docker.Volume
Volume
{ @
(struct) sparkles.core_cli.args.uda.Subcommands
Subcommands
SumType!(
(struct) docker.VolumeCreate
VolumeCreate
,
(struct) docker.VolumeInspect
VolumeInspect
,
(struct) docker.VolumeLs
VolumeLs
,
(struct) docker.VolumePrune
VolumePrune
,
(struct) docker.VolumeRm
VolumeRm
)
(field) std.sumtype.SumType!(VolumeCreate, VolumeInspect, VolumeLs, VolumePrune, VolumeRm) docker.Volume.command
command
;
} // ─── system group ──────────────────────────────────────────────────────── @(
(struct) sparkles.core_cli.args.uda.Command
Command
("df",
shortDescription: "Show docker disk usage", helpSections: ["description"], )) struct
(struct) docker.SystemDf
SystemDf
{ @(
(struct) sparkles.core_cli.args.uda.Option
Option
(`v|verbose`, description: "Show detailed information on space usage"))
bool
(field) bool docker.SystemDf.verbose
verbose
;
@(
(struct) sparkles.core_cli.args.uda.Option
Option
(`format`, description: "Format the output using a Go template"))
(alias) object.string = string
string
(field) string docker.SystemDf.format
format
;
void
void docker.SystemDf.run()
run
()
{ import
(package) std
std
.
(module) std.stdio
Category Symbols
File handles _popen File isFileHandle openNetwork stderr stdin stdout
Reading chunks lines readf readfln readln
Writing toFile write writef writefln writeln
Misc KeepTerminator LockType StdioException

Standard I/O functions that extend core.stdc.stdio. core.stdc.stdio is publically imported when importing std.stdio.

There are three layers of I/O:

  1. The lowest layer is the operating system layer. The two main schemes are Windows and Posix.

  2. C's stdio.h which unifies the two operating system schemes.

  3. std.stdio, this module, unifies the various stdio.h implementations into a high level package for D programs.

Source

std/stdio.d

@copyrightCopyright The D Language Foundation 2007-.@licenseBoost License 1.0.@authorsWalter Bright, Andrei Alexandrescu, Alex Rønne Petersen
stdio
:
(alias template) writeln = std.stdio.writeln(T...)(T args)

Equivalent to write(args, '\n'). Calling writeln without arguments is valid and just prints a newline to the standard output.

Params: args = the items to write to stdout

Throws: In case of an I/O error, throws an $(LREF StdioException). Example: Reads stdin and writes it to stdout with an argument counter.

import std.stdio;

void main() { string line;

    for (size_t count = 0; (line = readln) !is null; count++)
    {
         writeln("Input ", count, ": ", line);
    }

} ---

writeln
;
void std.stdio.writeln!string(string __param_0) @safe

Equivalent to write(args, '\n'). Calling writeln without arguments is valid and just prints a newline to the standard output.

Example

Reads stdin and writes it to stdout with an argument counter.

import std.stdio;

void main()
{
    string line;

    for (size_t count = 0; (line = readln) !is null; count++)
    {
         writeln("Input ", count, ": ", line);
    }
}
@paramargs the items to write to stdout@throwsIn case of an I/O error, throws an StdioException.
writeln
("Running docker system df with params:");
void std.stdio.writeln!string(string __param_0) @safe

Equivalent to write(args, '\n'). Calling writeln without arguments is valid and just prints a newline to the standard output.

Example

Reads stdin and writes it to stdout with an argument counter.

import std.stdio;

void main()
{
    string line;

    for (size_t count = 0; (line = readln) !is null; count++)
    {
         writeln("Input ", count, ": ", line);
    }
}
@paramargs the items to write to stdout@throwsIn case of an I/O error, throws an StdioException.
writeln
(
string sparkles.base.prettyprint.prettyPrint!(docker.SystemDf, void)(in docker.SystemDf value, in sparkles.base.prettyprint.PrettyPrintOptions!void opt = PrettyPrintOptions(cast(ushort)2u, cast(ushort)8u, 32u, 80u, true, false)) pure nothrow @safe

Convenience overload that returns a string.

prettyPrint
(this));
} } @(
(struct) sparkles.core_cli.args.uda.Command
Command
("prune",
shortDescription: "Remove unused data", helpSections: ["description"], )) struct
(struct) docker.SystemPrune
SystemPrune
{ @(
(struct) sparkles.core_cli.args.uda.Option
Option
(`f|force`, description: "Do not prompt for confirmation"))
bool
(field) bool docker.SystemPrune.force
force
;
@(
(struct) sparkles.core_cli.args.uda.Option
Option
(`a|all`, description: "Remove all unused images, not just dangling ones"))
bool
(field) bool docker.SystemPrune.all
all
;
@(
(struct) sparkles.core_cli.args.uda.Option
Option
(`volumes`, description: "Prune anonymous volumes too"))
bool
(field) bool docker.SystemPrune.volumes
volumes
;
@(
(struct) sparkles.core_cli.args.uda.Option
Option
(`filter`, description: "Provide filter values (e.g. 'label=foo'). Can be specified multiple times."))
(alias) object.string = string
string
[]
(field) string[] docker.SystemPrune.filters
filters
;
void
void docker.SystemPrune.run()
run
()
{ import
(package) std
std
.
(module) std.stdio
Category Symbols
File handles _popen File isFileHandle openNetwork stderr stdin stdout
Reading chunks lines readf readfln readln
Writing toFile write writef writefln writeln
Misc KeepTerminator LockType StdioException

Standard I/O functions that extend core.stdc.stdio. core.stdc.stdio is publically imported when importing std.stdio.

There are three layers of I/O:

  1. The lowest layer is the operating system layer. The two main schemes are Windows and Posix.

  2. C's stdio.h which unifies the two operating system schemes.

  3. std.stdio, this module, unifies the various stdio.h implementations into a high level package for D programs.

Source

std/stdio.d

@copyrightCopyright The D Language Foundation 2007-.@licenseBoost License 1.0.@authorsWalter Bright, Andrei Alexandrescu, Alex Rønne Petersen
stdio
:
(alias template) writeln = std.stdio.writeln(T...)(T args)

Equivalent to write(args, '\n'). Calling writeln without arguments is valid and just prints a newline to the standard output.

Params: args = the items to write to stdout

Throws: In case of an I/O error, throws an $(LREF StdioException). Example: Reads stdin and writes it to stdout with an argument counter.

import std.stdio;

void main() { string line;

    for (size_t count = 0; (line = readln) !is null; count++)
    {
         writeln("Input ", count, ": ", line);
    }

} ---

writeln
;
void std.stdio.writeln!string(string __param_0) @safe

Equivalent to write(args, '\n'). Calling writeln without arguments is valid and just prints a newline to the standard output.

Example

Reads stdin and writes it to stdout with an argument counter.

import std.stdio;

void main()
{
    string line;

    for (size_t count = 0; (line = readln) !is null; count++)
    {
         writeln("Input ", count, ": ", line);
    }
}
@paramargs the items to write to stdout@throwsIn case of an I/O error, throws an StdioException.
writeln
("Running docker system prune with params:");
void std.stdio.writeln!string(string __param_0) @safe

Equivalent to write(args, '\n'). Calling writeln without arguments is valid and just prints a newline to the standard output.

Example

Reads stdin and writes it to stdout with an argument counter.

import std.stdio;

void main()
{
    string line;

    for (size_t count = 0; (line = readln) !is null; count++)
    {
         writeln("Input ", count, ": ", line);
    }
}
@paramargs the items to write to stdout@throwsIn case of an I/O error, throws an StdioException.
writeln
(
string sparkles.base.prettyprint.prettyPrint!(docker.SystemPrune, void)(in docker.SystemPrune value, in sparkles.base.prettyprint.PrettyPrintOptions!void opt = PrettyPrintOptions(cast(ushort)2u, cast(ushort)8u, 32u, 80u, true, false)) pure nothrow @safe

Convenience overload that returns a string.

prettyPrint
(this));
} } @(
(struct) sparkles.core_cli.args.uda.Command
Command
("info",
shortDescription: "Display system-wide information", helpSections: ["description"], )) struct
(struct) docker.SystemInfo
SystemInfo
{ @(
(struct) sparkles.core_cli.args.uda.Option
Option
(`f|format`, description: "Format the output using a Go template"))
(alias) object.string = string
string
(field) string docker.SystemInfo.format
format
;
void
void docker.SystemInfo.run()
run
()
{ import
(package) std
std
.
(module) std.stdio
Category Symbols
File handles _popen File isFileHandle openNetwork stderr stdin stdout
Reading chunks lines readf readfln readln
Writing toFile write writef writefln writeln
Misc KeepTerminator LockType StdioException

Standard I/O functions that extend core.stdc.stdio. core.stdc.stdio is publically imported when importing std.stdio.

There are three layers of I/O:

  1. The lowest layer is the operating system layer. The two main schemes are Windows and Posix.

  2. C's stdio.h which unifies the two operating system schemes.

  3. std.stdio, this module, unifies the various stdio.h implementations into a high level package for D programs.

Source

std/stdio.d

@copyrightCopyright The D Language Foundation 2007-.@licenseBoost License 1.0.@authorsWalter Bright, Andrei Alexandrescu, Alex Rønne Petersen
stdio
:
(alias template) writeln = std.stdio.writeln(T...)(T args)

Equivalent to write(args, '\n'). Calling writeln without arguments is valid and just prints a newline to the standard output.

Params: args = the items to write to stdout

Throws: In case of an I/O error, throws an $(LREF StdioException). Example: Reads stdin and writes it to stdout with an argument counter.

import std.stdio;

void main() { string line;

    for (size_t count = 0; (line = readln) !is null; count++)
    {
         writeln("Input ", count, ": ", line);
    }

} ---

writeln
;
void std.stdio.writeln!string(string __param_0) @safe

Equivalent to write(args, '\n'). Calling writeln without arguments is valid and just prints a newline to the standard output.

Example

Reads stdin and writes it to stdout with an argument counter.

import std.stdio;

void main()
{
    string line;

    for (size_t count = 0; (line = readln) !is null; count++)
    {
         writeln("Input ", count, ": ", line);
    }
}
@paramargs the items to write to stdout@throwsIn case of an I/O error, throws an StdioException.
writeln
("Running docker system info with params:");
void std.stdio.writeln!string(string __param_0) @safe

Equivalent to write(args, '\n'). Calling writeln without arguments is valid and just prints a newline to the standard output.

Example

Reads stdin and writes it to stdout with an argument counter.

import std.stdio;

void main()
{
    string line;

    for (size_t count = 0; (line = readln) !is null; count++)
    {
         writeln("Input ", count, ": ", line);
    }
}
@paramargs the items to write to stdout@throwsIn case of an I/O error, throws an StdioException.
writeln
(
string sparkles.base.prettyprint.prettyPrint!(docker.SystemInfo, void)(in docker.SystemInfo value, in sparkles.base.prettyprint.PrettyPrintOptions!void opt = PrettyPrintOptions(cast(ushort)2u, cast(ushort)8u, 32u, 80u, true, false)) pure nothrow @safe

Convenience overload that returns a string.

prettyPrint
(this));
} } @(
(struct) sparkles.core_cli.args.uda.Command
Command
("events",
shortDescription: "Stream real-time events from the docker daemon", helpSections: ["description"], )) struct
(struct) docker.SystemEvents
SystemEvents
{ @(
(struct) sparkles.core_cli.args.uda.Option
Option
(`since`, description: "Show events created since timestamp"))
(alias) object.string = string
string
(field) string docker.SystemEvents.since
since
;
@(
(struct) sparkles.core_cli.args.uda.Option
Option
(`until`, description: "Stream events until timestamp"))
(alias) object.string = string
string
(field) string docker.SystemEvents.until
until
;
@(
(struct) sparkles.core_cli.args.uda.Option
Option
(`f|filter`, description: "Filter events. Can be specified multiple times."))
(alias) object.string = string
string
[]
(field) string[] docker.SystemEvents.filters
filters
;
@(
(struct) sparkles.core_cli.args.uda.Option
Option
(`format`, description: "Format the output using a Go template"))
(alias) object.string = string
string
(field) string docker.SystemEvents.format
format
;
void
void docker.SystemEvents.run()
run
()
{ import
(package) std
std
.
(module) std.stdio
Category Symbols
File handles _popen File isFileHandle openNetwork stderr stdin stdout
Reading chunks lines readf readfln readln
Writing toFile write writef writefln writeln
Misc KeepTerminator LockType StdioException

Standard I/O functions that extend core.stdc.stdio. core.stdc.stdio is publically imported when importing std.stdio.

There are three layers of I/O:

  1. The lowest layer is the operating system layer. The two main schemes are Windows and Posix.

  2. C's stdio.h which unifies the two operating system schemes.

  3. std.stdio, this module, unifies the various stdio.h implementations into a high level package for D programs.

Source

std/stdio.d

@copyrightCopyright The D Language Foundation 2007-.@licenseBoost License 1.0.@authorsWalter Bright, Andrei Alexandrescu, Alex Rønne Petersen
stdio
:
(alias template) writeln = std.stdio.writeln(T...)(T args)

Equivalent to write(args, '\n'). Calling writeln without arguments is valid and just prints a newline to the standard output.

Params: args = the items to write to stdout

Throws: In case of an I/O error, throws an $(LREF StdioException). Example: Reads stdin and writes it to stdout with an argument counter.

import std.stdio;

void main() { string line;

    for (size_t count = 0; (line = readln) !is null; count++)
    {
         writeln("Input ", count, ": ", line);
    }

} ---

writeln
;
void std.stdio.writeln!string(string __param_0) @safe

Equivalent to write(args, '\n'). Calling writeln without arguments is valid and just prints a newline to the standard output.

Example

Reads stdin and writes it to stdout with an argument counter.

import std.stdio;

void main()
{
    string line;

    for (size_t count = 0; (line = readln) !is null; count++)
    {
         writeln("Input ", count, ": ", line);
    }
}
@paramargs the items to write to stdout@throwsIn case of an I/O error, throws an StdioException.
writeln
("Running docker system events with params:");
void std.stdio.writeln!string(string __param_0) @safe

Equivalent to write(args, '\n'). Calling writeln without arguments is valid and just prints a newline to the standard output.

Example

Reads stdin and writes it to stdout with an argument counter.

import std.stdio;

void main()
{
    string line;

    for (size_t count = 0; (line = readln) !is null; count++)
    {
         writeln("Input ", count, ": ", line);
    }
}
@paramargs the items to write to stdout@throwsIn case of an I/O error, throws an StdioException.
writeln
(
string sparkles.base.prettyprint.prettyPrint!(docker.SystemEvents, void)(in docker.SystemEvents value, in sparkles.base.prettyprint.PrettyPrintOptions!void opt = PrettyPrintOptions(cast(ushort)2u, cast(ushort)8u, 32u, 80u, true, false)) pure nothrow @safe

Convenience overload that returns a string.

prettyPrint
(this));
} } @(
(struct) sparkles.core_cli.args.uda.Command
Command
("system",
shortDescription: "Manage Docker", helpSections: ["description"], )) struct
(struct) docker.System
System
{ @
(struct) sparkles.core_cli.args.uda.Subcommands
Subcommands
SumType!(
(struct) docker.SystemDf
SystemDf
,
(struct) docker.SystemEvents
SystemEvents
,
(struct) docker.SystemInfo
SystemInfo
,
(struct) docker.SystemPrune
SystemPrune
)
(field) std.sumtype.SumType!(SystemDf, SystemEvents, SystemInfo, SystemPrune) docker.System.command
command
;
} // ─── top-level shortcut commands ───────────────────────────────────────── @(
(struct) sparkles.core_cli.args.uda.Command
Command
("run",
shortDescription: "Create and run a new container from an image (alias for `container run`)", helpSections: ["description"], )) struct
(struct) docker.Run
Run
{ @
(struct) sparkles.core_cli.args.uda.Flatten

UDA to flatten a nested struct of CLI options into the parent command struct.

When a struct field is annotated with @Flatten``, its fields participate in option parsing, short-option bundling, positional argument assignment, and validation as if they were declared directly on the enclosing command.

@paramgroupHeading Optional heading used to group the flattened options in --help output. If null, options appear under the main OPTIONS section.@paramprefix Optional prefix prepended to long option names (e.g., "diff-" maps layout to --diff-layout).
Flatten
(struct) docker.ContainerRunOptions
ContainerRunOptions
(field) docker.ContainerRunOptions docker.Run.runOptions
runOptions
;
void
void docker.Run.run!(sparkles.core_cli.args.internal.CommandNode!(Docker))(in sparkles.core_cli.args.internal.CommandNode!(Docker) program) @system
run
(Program)(in
(alias) Program = sparkles.core_cli.args.internal.CommandNode!(Docker)
Program
(parameter) const(sparkles.core_cli.args.internal.CommandNode!(Docker)) program
program
) =>
void sparkles.base.styled_template.styledWriteln!(core.interpolation.InterpolatedLiteral!"Running {bold docker run} with params:\n globals: --host=", core.interpolation.InterpolatedExpression!"prettyPrint(program.value.hosts)", string, core.interpolation.InterpolatedLiteral!", --log-level='", core.interpolation.InterpolatedExpression!"program.value.logLevel", string, core.interpolation.InterpolatedLiteral!"', --debug=", core.interpolation.InterpolatedExpression!"program.value.debug_", const(bool), core.interpolation.InterpolatedLiteral!"\n params: ", core.interpolation.InterpolatedExpression!"prettyPrint(this)", string)(core.interpolation.InterpolationHeader header, core.interpolation.InterpolatedLiteral!"Running {bold docker run} with params:\n globals: --host=" __param_1, core.interpolation.InterpolatedExpression!"prettyPrint(program.value.hosts)" __param_2, string __param_3, core.interpolation.InterpolatedLiteral!", --log-level='" __param_4, core.interpolation.InterpolatedExpression!"program.value.logLevel" __param_5, string __param_6, core.interpolation.InterpolatedLiteral!"', --debug=" __param_7, core.interpolation.InterpolatedExpression!"program.value.debug_" __param_8, const(bool) __param_9, core.interpolation.InterpolatedLiteral!"\n params: " __param_10, core.interpolation.InterpolatedExpression!"prettyPrint(this)" __param_11, string __param_12, core.interpolation.InterpolationFooter footer) @system

ditto — defaults to ColorDepth.trueColor.

styledWriteln
(i"Running {bold docker run} with params:
globals: --host=$(prettyPrint(program.value.hosts)), --log-level='$(program.value.logLevel)', --debug=$(program.value.debug_) params: $(prettyPrint(this))"); } @(
(struct) sparkles.core_cli.args.uda.Command
Command
("ps",
shortDescription: "List containers (alias for `container ls`)", helpSections: ["description"], )) struct
(struct) docker.Ps
Ps
{ @(
(struct) sparkles.core_cli.args.uda.Option
Option
(`a|all`, description: "Show all containers (default shows just running)"))
bool
(field) bool docker.Ps.all
all
;
@(
(struct) sparkles.core_cli.args.uda.Option
Option
(`q|quiet`, description: "Only display container IDs"))
bool
(field) bool docker.Ps.quiet
quiet
;
@(
(struct) sparkles.core_cli.args.uda.Option
Option
(`f|filter`, description: "Filter output based on conditions provided. Can be specified multiple times."))
(alias) object.string = string
string
[]
(field) string[] docker.Ps.filters
filters
;
@(
(struct) sparkles.core_cli.args.uda.Option
Option
(`format`, description: "Pretty-print containers using a Go template"))
(alias) object.string = string
string
(field) string docker.Ps.format
format
;
@(
(struct) sparkles.core_cli.args.uda.Option
Option
(`s|size`, description: "Display total file sizes"))
bool
(field) bool docker.Ps.size
size
;
void
void docker.Ps.run!(sparkles.core_cli.args.internal.CommandNode!(Docker))(in sparkles.core_cli.args.internal.CommandNode!(Docker) program) @system
run
(Program)(in
(alias) Program = sparkles.core_cli.args.internal.CommandNode!(Docker)
Program
(parameter) const(sparkles.core_cli.args.internal.CommandNode!(Docker)) program
program
) =>
void sparkles.base.styled_template.styledWriteln!(core.interpolation.InterpolatedLiteral!"Running {bold docker ps} with params:\n globals: --host=", core.interpolation.InterpolatedExpression!"prettyPrint(program.value.hosts)", string, core.interpolation.InterpolatedLiteral!", --log-level='", core.interpolation.InterpolatedExpression!"program.value.logLevel", string, core.interpolation.InterpolatedLiteral!"', --debug=", core.interpolation.InterpolatedExpression!"program.value.debug_", const(bool), core.interpolation.InterpolatedLiteral!"\n params: ", core.interpolation.InterpolatedExpression!"prettyPrint(this)", string)(core.interpolation.InterpolationHeader header, core.interpolation.InterpolatedLiteral!"Running {bold docker ps} with params:\n globals: --host=" __param_1, core.interpolation.InterpolatedExpression!"prettyPrint(program.value.hosts)" __param_2, string __param_3, core.interpolation.InterpolatedLiteral!", --log-level='" __param_4, core.interpolation.InterpolatedExpression!"program.value.logLevel" __param_5, string __param_6, core.interpolation.InterpolatedLiteral!"', --debug=" __param_7, core.interpolation.InterpolatedExpression!"program.value.debug_" __param_8, const(bool) __param_9, core.interpolation.InterpolatedLiteral!"\n params: " __param_10, core.interpolation.InterpolatedExpression!"prettyPrint(this)" __param_11, string __param_12, core.interpolation.InterpolationFooter footer) @system

ditto — defaults to ColorDepth.trueColor.

styledWriteln
(i"Running {bold docker ps} with params:
globals: --host=$(prettyPrint(program.value.hosts)), --log-level='$(program.value.logLevel)', --debug=$(program.value.debug_) params: $(prettyPrint(this))"); } @(
(struct) sparkles.core_cli.args.uda.Command
Command
("images",
shortDescription: "List images (alias for `image ls`)", helpSections: ["description"], )) struct
(struct) docker.Images
Images
{ @(
(struct) sparkles.core_cli.args.uda.Option
Option
(`a|all`, description: "Show all images including intermediate layers"))
bool
(field) bool docker.Images.all
all
;
@(
(struct) sparkles.core_cli.args.uda.Option
Option
(`q|quiet`, description: "Only display image IDs"))
bool
(field) bool docker.Images.quiet
quiet
;
@(
(struct) sparkles.core_cli.args.uda.Option
Option
(`digests`, description: "Show image digests"))
bool
(field) bool docker.Images.digests
digests
;
@(
(struct) sparkles.core_cli.args.uda.Option
Option
(`f|filter`, description: "Filter output. Can be specified multiple times."))
(alias) object.string = string
string
[]
(field) string[] docker.Images.filters
filters
;
void
void docker.Images.run()
run
()
{ import
(package) std
std
.
(module) std.stdio
Category Symbols
File handles _popen File isFileHandle openNetwork stderr stdin stdout
Reading chunks lines readf readfln readln
Writing toFile write writef writefln writeln
Misc KeepTerminator LockType StdioException

Standard I/O functions that extend core.stdc.stdio. core.stdc.stdio is publically imported when importing std.stdio.

There are three layers of I/O:

  1. The lowest layer is the operating system layer. The two main schemes are Windows and Posix.

  2. C's stdio.h which unifies the two operating system schemes.

  3. std.stdio, this module, unifies the various stdio.h implementations into a high level package for D programs.

Source

std/stdio.d

@copyrightCopyright The D Language Foundation 2007-.@licenseBoost License 1.0.@authorsWalter Bright, Andrei Alexandrescu, Alex Rønne Petersen
stdio
:
(alias template) writeln = std.stdio.writeln(T...)(T args)

Equivalent to write(args, '\n'). Calling writeln without arguments is valid and just prints a newline to the standard output.

Params: args = the items to write to stdout

Throws: In case of an I/O error, throws an $(LREF StdioException). Example: Reads stdin and writes it to stdout with an argument counter.

import std.stdio;

void main() { string line;

    for (size_t count = 0; (line = readln) !is null; count++)
    {
         writeln("Input ", count, ": ", line);
    }

} ---

writeln
;
void std.stdio.writeln!string(string __param_0) @safe

Equivalent to write(args, '\n'). Calling writeln without arguments is valid and just prints a newline to the standard output.

Example

Reads stdin and writes it to stdout with an argument counter.

import std.stdio;

void main()
{
    string line;

    for (size_t count = 0; (line = readln) !is null; count++)
    {
         writeln("Input ", count, ": ", line);
    }
}
@paramargs the items to write to stdout@throwsIn case of an I/O error, throws an StdioException.
writeln
("Running docker images with params:");
void std.stdio.writeln!string(string __param_0) @safe

Equivalent to write(args, '\n'). Calling writeln without arguments is valid and just prints a newline to the standard output.

Example

Reads stdin and writes it to stdout with an argument counter.

import std.stdio;

void main()
{
    string line;

    for (size_t count = 0; (line = readln) !is null; count++)
    {
         writeln("Input ", count, ": ", line);
    }
}
@paramargs the items to write to stdout@throwsIn case of an I/O error, throws an StdioException.
writeln
(
string sparkles.base.prettyprint.prettyPrint!(docker.Images, void)(in docker.Images value, in sparkles.base.prettyprint.PrettyPrintOptions!void opt = PrettyPrintOptions(cast(ushort)2u, cast(ushort)8u, 32u, 80u, true, false)) pure nothrow @safe

Convenience overload that returns a string.

prettyPrint
(this));
} } @(
(struct) sparkles.core_cli.args.uda.Command
Command
("rm",
shortDescription: "Remove one or more containers (alias for `container rm`)", helpSections: ["description"], )) struct
(struct) docker.Rm
Rm
{ @(
(struct) sparkles.core_cli.args.uda.Option
Option
(`f|force`, description: "Force-remove a running container (uses SIGKILL)"))
bool
(field) bool docker.Rm.force
force
;
@(
(struct) sparkles.core_cli.args.uda.Option
Option
(`v|volumes`, description: "Remove anonymous volumes associated with the container"))
bool
(field) bool docker.Rm.volumes
volumes
;
@(
(struct) sparkles.core_cli.args.uda.Argument
Argument
("containers"))
(alias) object.string = string
string
[]
(field) string[] docker.Rm.containers
containers
;
void
void docker.Rm.run()
run
()
{ import
(package) std
std
.
(module) std.stdio
Category Symbols
File handles _popen File isFileHandle openNetwork stderr stdin stdout
Reading chunks lines readf readfln readln
Writing toFile write writef writefln writeln
Misc KeepTerminator LockType StdioException

Standard I/O functions that extend core.stdc.stdio. core.stdc.stdio is publically imported when importing std.stdio.

There are three layers of I/O:

  1. The lowest layer is the operating system layer. The two main schemes are Windows and Posix.

  2. C's stdio.h which unifies the two operating system schemes.

  3. std.stdio, this module, unifies the various stdio.h implementations into a high level package for D programs.

Source

std/stdio.d

@copyrightCopyright The D Language Foundation 2007-.@licenseBoost License 1.0.@authorsWalter Bright, Andrei Alexandrescu, Alex Rønne Petersen
stdio
:
(alias template) writeln = std.stdio.writeln(T...)(T args)

Equivalent to write(args, '\n'). Calling writeln without arguments is valid and just prints a newline to the standard output.

Params: args = the items to write to stdout

Throws: In case of an I/O error, throws an $(LREF StdioException). Example: Reads stdin and writes it to stdout with an argument counter.

import std.stdio;

void main() { string line;

    for (size_t count = 0; (line = readln) !is null; count++)
    {
         writeln("Input ", count, ": ", line);
    }

} ---

writeln
;
void std.stdio.writeln!string(string __param_0) @safe

Equivalent to write(args, '\n'). Calling writeln without arguments is valid and just prints a newline to the standard output.

Example

Reads stdin and writes it to stdout with an argument counter.

import std.stdio;

void main()
{
    string line;

    for (size_t count = 0; (line = readln) !is null; count++)
    {
         writeln("Input ", count, ": ", line);
    }
}
@paramargs the items to write to stdout@throwsIn case of an I/O error, throws an StdioException.
writeln
("Running docker rm with params:");
void std.stdio.writeln!string(string __param_0) @safe

Equivalent to write(args, '\n'). Calling writeln without arguments is valid and just prints a newline to the standard output.

Example

Reads stdin and writes it to stdout with an argument counter.

import std.stdio;

void main()
{
    string line;

    for (size_t count = 0; (line = readln) !is null; count++)
    {
         writeln("Input ", count, ": ", line);
    }
}
@paramargs the items to write to stdout@throwsIn case of an I/O error, throws an StdioException.
writeln
(
string sparkles.base.prettyprint.prettyPrint!(docker.Rm, void)(in docker.Rm value, in sparkles.base.prettyprint.PrettyPrintOptions!void opt = PrettyPrintOptions(cast(ushort)2u, cast(ushort)8u, 32u, 80u, true, false)) pure nothrow @safe

Convenience overload that returns a string.

prettyPrint
(this));
} } @(
(struct) sparkles.core_cli.args.uda.Command
Command
("rmi",
shortDescription: "Remove one or more images (alias for `image rm`)", helpSections: ["description"], )) struct
(struct) docker.Rmi
Rmi
{ @(
(struct) sparkles.core_cli.args.uda.Option
Option
(`f|force`, description: "Force-remove the image even if it has tags or running containers"))
bool
(field) bool docker.Rmi.force
force
;
@(
(struct) sparkles.core_cli.args.uda.Option
Option
(`no-prune`, description: "Do not delete untagged parent layers"))
bool
(field) bool docker.Rmi.noPrune
noPrune
;
@(
(struct) sparkles.core_cli.args.uda.Argument
Argument
("images"))
(alias) object.string = string
string
[]
(field) string[] docker.Rmi.images
images
;
void
void docker.Rmi.run()
run
()
{ import
(package) std
std
.
(module) std.stdio
Category Symbols
File handles _popen File isFileHandle openNetwork stderr stdin stdout
Reading chunks lines readf readfln readln
Writing toFile write writef writefln writeln
Misc KeepTerminator LockType StdioException

Standard I/O functions that extend core.stdc.stdio. core.stdc.stdio is publically imported when importing std.stdio.

There are three layers of I/O:

  1. The lowest layer is the operating system layer. The two main schemes are Windows and Posix.

  2. C's stdio.h which unifies the two operating system schemes.

  3. std.stdio, this module, unifies the various stdio.h implementations into a high level package for D programs.

Source

std/stdio.d

@copyrightCopyright The D Language Foundation 2007-.@licenseBoost License 1.0.@authorsWalter Bright, Andrei Alexandrescu, Alex Rønne Petersen
stdio
:
(alias template) writeln = std.stdio.writeln(T...)(T args)

Equivalent to write(args, '\n'). Calling writeln without arguments is valid and just prints a newline to the standard output.

Params: args = the items to write to stdout

Throws: In case of an I/O error, throws an $(LREF StdioException). Example: Reads stdin and writes it to stdout with an argument counter.

import std.stdio;

void main() { string line;

    for (size_t count = 0; (line = readln) !is null; count++)
    {
         writeln("Input ", count, ": ", line);
    }

} ---

writeln
;
void std.stdio.writeln!string(string __param_0) @safe

Equivalent to write(args, '\n'). Calling writeln without arguments is valid and just prints a newline to the standard output.

Example

Reads stdin and writes it to stdout with an argument counter.

import std.stdio;

void main()
{
    string line;

    for (size_t count = 0; (line = readln) !is null; count++)
    {
         writeln("Input ", count, ": ", line);
    }
}
@paramargs the items to write to stdout@throwsIn case of an I/O error, throws an StdioException.
writeln
("Running docker rmi with params:");
void std.stdio.writeln!string(string __param_0) @safe

Equivalent to write(args, '\n'). Calling writeln without arguments is valid and just prints a newline to the standard output.

Example

Reads stdin and writes it to stdout with an argument counter.

import std.stdio;

void main()
{
    string line;

    for (size_t count = 0; (line = readln) !is null; count++)
    {
         writeln("Input ", count, ": ", line);
    }
}
@paramargs the items to write to stdout@throwsIn case of an I/O error, throws an StdioException.
writeln
(
string sparkles.base.prettyprint.prettyPrint!(docker.Rmi, void)(in docker.Rmi value, in sparkles.base.prettyprint.PrettyPrintOptions!void opt = PrettyPrintOptions(cast(ushort)2u, cast(ushort)8u, 32u, 80u, true, false)) pure nothrow @safe

Convenience overload that returns a string.

prettyPrint
(this));
} } // ─── root ──────────────────────────────────────────────────────────────── @(
(struct) sparkles.core_cli.args.uda.Command
Command
("docker",
shortDescription: "A self-sufficient runtime for containers", helpSections: ["description", "examples"], )) struct
(struct) docker.Docker
Docker
{ @(
(struct) sparkles.core_cli.args.uda.Option
Option
(`H|host`, description: "Daemon socket(s) to connect to. Can be specified multiple times."))
(alias) object.string = string
string
[]
(field) string[] docker.Docker.hosts
hosts
;
@(
(struct) sparkles.core_cli.args.uda.Option
Option
(`l|log-level`, allowedValues: ["debug", "info", "warn", "error", "fatal"]))
(alias) object.string = string
string
(field) string docker.Docker.logLevel
logLevel
= "info";
@(
(struct) sparkles.core_cli.args.uda.Option
Option
(`D|debug`, description: "Enable debug mode"))
bool
(field) bool docker.Docker.debug_
debug_
;
@
(struct) sparkles.core_cli.args.uda.Subcommands
Subcommands
SumType!(
(struct) docker.Container
Container
,
(struct) docker.Image
Image
,
(struct) docker.Images
Images
,
(struct) docker.Network
Network
,
(struct) docker.Ps
Ps
,
(struct) docker.Rm
Rm
,
(struct) docker.Rmi
Rmi
,
(struct) docker.Run
Run
,
(struct) docker.System
System
,
(struct) docker.Volume
Volume
,
)
(field) std.sumtype.SumType!(Container, Image, Images, Network, Ps, Rm, Rmi, Run, System, Volume) docker.Docker.command
command
;
} int
int D main(string[] args)
main
(
(alias) object.string = string
string
[]
(parameter) string[] args
args
)
{ return
int sparkles.core_cli.args.internal.runCli!(docker.Docker)(string[] argv) @system
runCli
!
(struct) docker.Docker
Docker
(
(parameter) string[] args
args
);
}