Skip to content

Commit

Permalink
Use DZP::Rinci::ScriptFromFunc
Browse files Browse the repository at this point in the history
  • Loading branch information
sharyanto committed Aug 15, 2014
1 parent f2d90e0 commit a94d7dc
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 39 deletions.
39 changes: 0 additions & 39 deletions bin/uniq-files

This file was deleted.

3 changes: 3 additions & 0 deletions dist.ini
Expand Up @@ -5,6 +5,9 @@ author = Steven Haryanto <stevenharyanto@gmail.com>
license = Perl_5
copyright_holder = Steven Haryanto

[Rinci::ScriptFromFunc]
script= func=/App/UniqFiles/uniq_files, prefer_lite=1

[@Author::SHARYANTO]
:version=0.23

Expand Down
17 changes: 17 additions & 0 deletions lib/App/UniqFiles.pm
Expand Up @@ -98,6 +98,23 @@ duplicate, and so on.
_
},
},
examples => [
{
summary => 'List all files which do no have duplicate contents',
src => 'uniq-files *',
src_plang => 'bash',
},
{
summary => 'List all files which have duplicate contents',
src => 'uniq-files -d *',
src_plang => 'bash',
},
{
summary => 'List number of occurences of contents for each file',
src => 'uniq-files -c *',
src_plang => 'bash',
},
],
};
sub uniq_files {
my %args = @_;
Expand Down

0 comments on commit a94d7dc

Please sign in to comment.