Rename TokamakCLI executable to plain tokamak (#90)

This commit is contained in:
Max Desiatov 2019-05-06 11:28:41 +01:00 committed by GitHub
parent ee1f2d93c8
commit 78fa74d592
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 7 deletions

View File

@ -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.

View File

@ -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.

View File

@ -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