https://github.com/fixrb/fix-command
Fix extension gem for the fix command.
https://github.com/fixrb/fix-command
command-line ruby
Last synced: 5 months ago
JSON representation
Fix extension gem for the fix command.
- Host: GitHub
- URL: https://github.com/fixrb/fix-command
- Owner: fixrb
- License: mit
- Created: 2015-09-28T18:09:21.000Z (almost 11 years ago)
- Default Branch: main
- Last Pushed: 2024-05-16T19:11:27.000Z (about 2 years ago)
- Last Synced: 2025-12-01T12:31:36.259Z (7 months ago)
- Topics: command-line, ruby
- Language: Ruby
- Size: 43.9 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Fix::Command
[](https://github.com/fixrb/fix-command/releases)
[](https://rubydoc.info/github/fixrb/fix-command/main)
[](https://github.com/fixrb/fix-command/actions?query=workflow%3Aci+branch%3Amain)
[](https://github.com/fixrb/fix-command/actions?query=workflow%3Arubocop+branch%3Amain)
[](https://github.com/fixrb/fix-command/raw/main/LICENSE.md)
> Provides the `fix` command with several options.
## Installation
Add this line to your application's Gemfile:
```ruby
gem "fix-command"
```
And then execute:
$ bundle
Or install it yourself as:
$ gem install fix-command
## Usage
First, let's see the API:
$ fix --help
Usage: fix [options]
Specific options:
--[no-]debug Enable ruby debug
--[no-]warnings Enable ruby warnings
--[no-]diff Regression test selection
--random [SEED] Predictable randomization
--prefix [PREFIX] Prefix of the spec files
--suffix [SUFFIX] Suffix of the spec files
Common options:
-h, --help Show this message
-v, --version Show the version
And second, let's run a test:
$ fix ./app/ --prefix test_ --suffix --diff
> fix /Users/bob/app/duck_fix.rb --diff --random 198142038504094374390860708229193114294 --prefix "test_" --suffix ""
/Users/bob/app/duck_fix.rb ..
Ran 2 tests in 0.000382 seconds
100% compliant - 0 infos, 0 failures, 0 errors
### Store Command Line Options
You can store command-line configuration options in a `.fix` file in two different locations:
* Local: "`./.fix`" (i.e. in the project's root directory)
* Global: "`~/.fix`" (i.e. in the user's home directory)
__Fix::Command__ will thus read them as though you typed them on the command-line.
Options declared in the local file override those in the global file, while those declared in command-line will override any ".fix" file.
## Contact
* Home page: https://github.com/fixrb/fix-command
* Bugs/issues: https://github.com/fixrb/fix-command/issues
## Versioning
__Fix::Command__ follows [Semantic Versioning 2.0](https://semver.org/).
## License
The [gem](https://rubygems.org/gems/fix-command) is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
***
