| 1 | package Mojolicious::Command::passphrase; | ||||||||||
| 2 | 1 | $Mojolicious::Command::passphrase::VERSION = '0.003'; | |||||||||
| 3 | 1 | ▶ | use Mojo::Base 'Mojolicious::Command'; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | 1 | ▶ | use Crypt::Passphrase; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | 1 | ▶ | use Mojo::Util (); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 6 | |||||||||||
| 7 | 1 | has description => 'hash a password using the settings in your Mojolicious app.'; | |||||||||
| 8 | |||||||||||
| 9 | 0 | ▶ | has usage => sub { shift->extract_usage }; | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||||||||||
| 10 | |||||||||||
| 11 | 0 | ▶ | sub run { | ||||||||
|
Subroutine
run: not called CC=2 SCAR=17.9
Pod
documented
| |||||||||||
| 12 | 0 | my ($self, $password, @args) = @_; | |||||||||
| 13 | 0 | ▶ | die $self->usage unless defined $password; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 14 | |||||||||||
| 15 | 0 | say $self->app->hash_password($password); | |||||||||
| 16 | } | ||||||||||
| 17 | |||||||||||
| 18 | 1 | 1; | |||||||||
| 19 | |||||||||||
| 20 | __END__ | ||||||||||