| 1 | package Luv::CLI::Command::Build; | ||||||||||
| 2 | |||||||||||
| 3 | # ABSTRACT: package the project into a .love file | ||||||||||
| 4 | |||||||||||
| 5 | 1 | ▶ | use v5.38; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 6 | 1 | ▶ | use Object::Pad; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 7 | |||||||||||
| 8 | 1 | ▶ | use App::Cmd::Setup -command; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 9 | |||||||||||
| 10 | 1 | ▶ | use Luv::CLI::Manifest; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 11 | 1 | ▶ | use Luv::CLI::Package; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 12 | |||||||||||
| 13 | 0 | ▶ | sub abstract { | ||||||||
|
Subroutine
abstract: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 14 | 0 | "Packages the project into a .love file."; | |||||||||
| 15 | } | ||||||||||
| 16 | |||||||||||
| 17 | 0 | ▶ | sub execute ( $self, $opt, $args ) { | ||||||||
|
Subroutine
execute: not called CC=2 SCAR=17.9
Pod
documented
| |||||||||||
| 18 | 0 | my $manifest_path = "luv.json"; | |||||||||
| 19 | 0 | ▶ | die "No luv.json found — run 'luv init' first\n" unless -e $manifest_path; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 20 | |||||||||||
| 21 | 0 | my $manifest = Luv::CLI::Manifest->new( path => $manifest_path ); | |||||||||
| 22 | 0 | $manifest->load; | |||||||||
| 23 | |||||||||||
| 24 | 0 | my $package = Luv::CLI::Package->new( manifest => $manifest ); | |||||||||
| 25 | 0 | my $output_path = $package->build; | |||||||||
| 26 | |||||||||||
| 27 | 0 | print "Built $output_path\n"; | |||||||||
| 28 | 0 | return; | |||||||||
| 29 | } | ||||||||||
| 30 | |||||||||||
| 31 | 1 | 1; | |||||||||
| 32 | |||||||||||
| 33 | __END__ | ||||||||||