From dfcf2c13edfa774d76f2b917cccc6982e0a0b91b Mon Sep 17 00:00:00 2001 From: Marius Gavrilescu Date: Fri, 2 Oct 2015 14:26:21 +0300 Subject: [PATCH] Add show_job and show_user to gm command --- lib/Gruntmaster/App/Command/Show.pm | 33 +++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) 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__ -- 2.39.2