From: Marius Gavrilescu Date: Fri, 2 Oct 2015 11:26:21 +0000 (+0300) Subject: Add show_job and show_user to gm command X-Git-Tag: 5999.000_014~6 X-Git-Url: http://git.ieval.ro/?a=commitdiff_plain;h=dfcf2c13edfa774d76f2b917cccc6982e0a0b91b;p=gruntmaster-data.git Add show_job and show_user to gm command --- diff --git a/lib/Gruntmaster/App/Command/Show.pm b/lib/Gruntmaster/App/Command/Show.pm index 3792098..45f3eef 100644 --- a/lib/Gruntmaster/App/Command/Show.pm +++ b/lib/Gruntmaster/App/Command/Show.pm @@ -43,6 +43,22 @@ Stop: $columns{stop} END } +sub show_job { + my (%columns) = @_; + $columns{date} = strftime '%c', localtime $columns{date}; + + no warnings 'uninitialized'; + print < +Phone: $columns{phone} +Since: $columns{since} +Admin: @{[$columns{admin} ? 'Yes' : 'No']} +Level: $columns{level} +University: $columns{university} +Town: $columns{town} +Country: $columns{country} +END +} + 1; __END__