Skip to content

Commit

Permalink
feat: Easier options
Browse files Browse the repository at this point in the history
  • Loading branch information
Xavier-IV committed Sep 8, 2023
1 parent 3776132 commit 4271d27
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
11 changes: 7 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@ $ windclutter use

## In Action

### 1. Single file analysis
### 1. Single file analysis `-f`
```
$ windclutter analysis file src/index.html
$ windclutter analysis -f src/index.html
```

```
Expand All @@ -79,14 +79,17 @@ Done!
}
```

### 2. Project traversal (NEW)
### 2. Project traversal `-t` (NEW)

Provide an option with your file extension, and let it do its magic! 🎉

```
$ windclutter analysis traversal .html
$ windclutter analysis -t .html
```

```
# output
Analysing .html...
Traversed 22 .html file(s)... 🎉
{
Expand Down
4 changes: 2 additions & 2 deletions lib/windclutter/cli/core.rb
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ def call(*)
prefix.register 'config', Commands::Project::ConfigUpdate, aliases: ['-c']
end

register 'analysis', aliases: %w[a -a] do |prefix|
prefix.register 'file', Commands::Analysis::FilePath, aliases: ['-p']
register 'analysis', aliases: %w[a] do |prefix|
prefix.register 'file', Commands::Analysis::FilePath, aliases: ['-f']
prefix.register 'traverse', Commands::Analysis::Traverse, aliases: ['-t']
end

Expand Down

0 comments on commit 4271d27

Please sign in to comment.