Skip to content

Commit

Permalink
'list' command added
Browse files Browse the repository at this point in the history
  • Loading branch information
bfontaine committed Feb 17, 2014
1 parent ed50136 commit 33ea69f
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion rfc
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,10 @@ https://api.github.com/repos/bfontaine/rfc/git/refs/heads/master"
return 0
}

list() {
\ls -1 $rfc_dir | grep '^\d\+$' | sort -n | sed 's/^/RFC /'
}

update() {
fetch_url $RFC_REMOTE_URL $0
chmod +x "$0"
Expand All @@ -103,7 +107,8 @@ https://api.github.com/repos/bfontaine/rfc/git/refs/heads/master"
rfc <number> # display the RFC <number>
rfc update # Update the script
rfc search [OPTS] X # Search for X with grep with OPTS passed through
rfc search [OPTS] X # Search for X in local RFCs using grep with OPTS passed through
rfc list # List locally available RFCs
rfc clear # clear the cache'
}

Expand Down Expand Up @@ -161,6 +166,10 @@ https://api.github.com/repos/bfontaine/rfc/git/refs/heads/master"
update
return 0;;

ls|list)
list
return 0;;

search)
shift;
search $*
Expand Down

0 comments on commit 33ea69f

Please sign in to comment.