Skip to content

Commit

Permalink
read me update
Browse files Browse the repository at this point in the history
  • Loading branch information
zaneenders committed Jun 29, 2024
1 parent 21ad826 commit 23a3893
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
8 changes: 1 addition & 7 deletions Plugins/SwiftFormatPlugin/SwiftFormatPlugin.swift
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ struct SwiftFormatPlugin: CommandPlugin {

var toFormat = Set<String>()

// Target files
for target in context.package.targets {
toFormat.insert("\(target.directory)")
}
Expand All @@ -52,15 +51,10 @@ struct SwiftFormatPlugin: CommandPlugin {
print("formatting: \(p)")
}
process.waitUntilExit()

// Check whether the subprocess invocation was successful.
if !(process.terminationReason == .exit
&& process.terminationStatus == 0)
{
let problem: String =
"\(process.terminationReason):\(process.terminationStatus)"
Diagnostics.error(
"swift-format invocation failed: \(problem)")
fatalError("\(process.terminationReason):\(process.terminationStatus)")
}
}
}
Expand Down
16 changes: 11 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,21 @@
# Chroma Shell

Add Chroma Shell to your swift package to give it a try
A basic Swift DSL for making more interactive tools of your shell.

## Getting started

Add Chroma Shell to your swift package to give it a try.
```swift
.package(
url: "https://github.com/zaneenders/chroma-shell.git",
revision: "main"),

.product(name: "Chroma", package: "chroma-shell"),
.product(name: "ChromaShell", package: "chroma-shell"),
```

## Features
[x] Basic ascii color functions
You can also clone the repo and `swift run` to try out the sample found at [TestChromaClient](Sources/TestChromaClient/TestChromaClient.swift).


## [Documentation](https://zaneenders.github.io/chroma-shell/documentation/chromashell/)

## [Documentation](https://zaneenders.github.io/chroma-shell/documentation/chromashell/)
Checkout the docs for more details about the project.

0 comments on commit 23a3893

Please sign in to comment.