Rename TokamakCLI executable to plain tokamak (#90)
This commit is contained in:
parent
ee1f2d93c8
commit
78fa74d592
|
@ -33,7 +33,7 @@ let package = Package(
|
|||
name: "TokamakLint",
|
||||
targets: ["TokamakLint"]
|
||||
),
|
||||
.executable(name: "TokamakCLI", targets: ["TokamakCLI"]),
|
||||
.executable(name: "tokamak", targets: ["TokamakCLI"]),
|
||||
],
|
||||
dependencies: [
|
||||
// Dependencies declare other packages that this package depends on.
|
||||
|
|
|
@ -29,7 +29,7 @@ let package = Package(
|
|||
name: "TokamakLint",
|
||||
targets: ["TokamakLint"]
|
||||
),
|
||||
.executable(name: "TokamakCLI", targets: ["TokamakCLI"]),
|
||||
.executable(name: "tokamak", targets: ["TokamakCLI"]),
|
||||
],
|
||||
dependencies: [
|
||||
// Dependencies declare other packages that this package depends on.
|
||||
|
|
|
@ -7,19 +7,19 @@ and show them in Xcode or in terminal.
|
|||
|
||||
### Add to Xcode build phase
|
||||
|
||||
- build TokamakCLI with Xcode
|
||||
- add path to TokamakCLI to build phase
|
||||
- build TokamakCLI target with Xcode
|
||||
- add path to `tokamak` executable to build phase
|
||||
|
||||
```bash
|
||||
{path to TokamakCLI}/TokamakCLI lint {path to folder or file}
|
||||
{path to TokamakCLI}/tokamak lint {path to folder or file}
|
||||
```
|
||||
|
||||
or
|
||||
|
||||
### Run in terminal
|
||||
|
||||
- run `swift build --product TokamakCLI` in Tokamak directory
|
||||
- run `swift run TokamakCLI lint "{path to lint folder or file}"` in Tokamak directory
|
||||
- run `swift build --product tokamak` in Tokamak directory
|
||||
- run `swift run tokamak lint "{path to lint folder or file}"` in Tokamak directory
|
||||
|
||||
## Supported Rules
|
||||
|
||||
|
|
Loading…
Reference in New Issue