Skip to content

Commit

Permalink
list unique projects
Browse files Browse the repository at this point in the history
  • Loading branch information
benlund committed Oct 25, 2011
1 parent 6c219e7 commit 3babd20
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
6 changes: 5 additions & 1 deletion lib/fz/numerics/cli.coffee
Expand Up @@ -48,7 +48,11 @@ class CLI
(JSON.parse(fs.readFileSync(path.join(@config_dir, f))) for k, f of @key_files)

projects: () ->
(k.project.name for k in this.keys())
ps = []
for k in this.keys()
pn = k.project.name
ps.push(pn) unless ps.indexOf(pn) > -1
ps

list_keys: () ->
console.log this.keys()
Expand Down
11 changes: 7 additions & 4 deletions lib/fz/numerics/cli.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 3babd20

Please sign in to comment.