Knarr/CLI/Cmd/Container.pm

filter: Statementstmt 68.7% 11 / 16 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 75.0% 3 / 4 Podpod 0.0% 0 / 1 totaltotal 66.6% 14 / 21 CC 1 SCAR 2.2
CC
1
Cov
69%
execute
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.2
« Knarr/Protocol.pm ↑ Summary Knarr/Handler.pm »
1 package Langertha::Knarr::CLI::Cmd::Container;
2 1 our $VERSION = '1.100';
3 # ABSTRACT: Alias for 'knarr start --from-env' (Docker mode)
4 1 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 1 ▶use MooX::Cmd;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 1 ▶use MooX::Options protect_argv => 0, usage_string => 'USAGE: knarr container [options]';
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8  
9 sub execute {
10 0 ▶ my ($self, $args, $chain) = @_;
Subroutine execute: not called CC=1 SCAR=6.9
Pod undocumented
11 0 print STDERR "[knarr] NOTE: 'knarr container' is now 'knarr start --from-env'\n";
12 0 require Langertha::Knarr::CLI::Cmd::Start;
13 0 my $start = Langertha::Knarr::CLI::Cmd::Start->new(
14 from_env => 1,
15 host => '0.0.0.0',
16 port => [],
17 workers => 1,
18 );
19 0 $start->execute($args, $chain);
20 }
21  
22 1 1;
23  
24 __END__
25  
26 =pod
27  
28 =encoding UTF-8
29  
30 =head1 NAME
31  
32 Langertha::Knarr::CLI::Cmd::Container - Alias for 'knarr start --from-env' (Docker mode)
33  
34 =head1 VERSION
35  
36 version 1.100
37  
38 =head1 DESCRIPTION
39  
40 Deprecated alias for C<knarr start --from-env>. Kept for backwards
41 compatibility with existing Docker images. All options are forwarded to
42 L<Langertha::Knarr::CLI::Cmd::Start>.
43  
44 =head1 SUPPORT
45  
46 =head2 Issues
47  
48 Please report bugs and feature requests on GitHub at
49 L<https://github.com/Getty/langertha-knarr/issues>.
50  
51 =head2 IRC
52  
53 Join C<#langertha> on C<irc.perl.org> or message Getty directly.
54  
55 =head1 CONTRIBUTING
56  
57 Contributions are welcome! Please fork the repository and submit a pull request.
58  
59 =head1 AUTHOR
60  
61 Torsten Raudssus <torsten@raudssus.de> L<https://raudssus.de/>
62  
63 =head1 COPYRIGHT AND LICENSE
64  
65 This software is copyright (c) 2026 by Torsten Raudssus.
66  
67 This is free software; you can redistribute it and/or modify it under
68 the same terms as the Perl 5 programming language system itself.
69  
70 =cut
« Knarr/Protocol.pm ↑ Summary Knarr/Handler.pm »