Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
underthestars-zhy committed Jun 3, 2023
1 parent 63f7afc commit ff820fd
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ SwiftGGFormatter is a tool that can reformat SwiftGG's YAML file, arranging its
## Installation

1. Please visit the release page and download the latest version of the CLI.
2. Move the downloaded CLI to the `/usr/bin/` directory.
2. Move the downloaded CLI to the `/usr/local/bin/` directory.

## Get Started

Expand Down
8 changes: 4 additions & 4 deletions SwiftGGFormatter.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
objects = {

/* Begin PBXBuildFile section */
90B11FF32A2B8CDA00188D29 /* main.swift in Sources */ = {isa = PBXBuildFile; fileRef = 90B11FF22A2B8CDA00188D29 /* main.swift */; };
90B11FF32A2B8CDA00188D29 /* SwiftGGFormatter.swift in Sources */ = {isa = PBXBuildFile; fileRef = 90B11FF22A2B8CDA00188D29 /* SwiftGGFormatter.swift */; };
90B11FFB2A2B8CFA00188D29 /* SwiftGGFormater in Frameworks */ = {isa = PBXBuildFile; productRef = 90B11FFA2A2B8CFA00188D29 /* SwiftGGFormater */; };
90B11FFD2A2B8D0600188D29 /* Mapper.swift in Sources */ = {isa = PBXBuildFile; fileRef = 90B11FFC2A2B8D0600188D29 /* Mapper.swift */; };
90B120002A2B8EB200188D29 /* ArgumentParser in Frameworks */ = {isa = PBXBuildFile; productRef = 90B11FFF2A2B8EB200188D29 /* ArgumentParser */; };
Expand All @@ -27,7 +27,7 @@

/* Begin PBXFileReference section */
90B11FEF2A2B8CDA00188D29 /* SwiftGGFormatter */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = SwiftGGFormatter; sourceTree = BUILT_PRODUCTS_DIR; };
90B11FF22A2B8CDA00188D29 /* main.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = main.swift; sourceTree = "<group>"; };
90B11FF22A2B8CDA00188D29 /* SwiftGGFormatter.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SwiftGGFormatter.swift; sourceTree = "<group>"; };
90B11FFC2A2B8D0600188D29 /* Mapper.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Mapper.swift; sourceTree = "<group>"; };
90B120012A2B903F00188D29 /* README.md */ = {isa = PBXFileReference; lastKnownFileType = net.daringfireball.markdown; path = README.md; sourceTree = "<group>"; };
/* End PBXFileReference section */
Expand Down Expand Up @@ -65,7 +65,7 @@
90B11FF12A2B8CDA00188D29 /* SwiftGGFormatter */ = {
isa = PBXGroup;
children = (
90B11FF22A2B8CDA00188D29 /* main.swift */,
90B11FF22A2B8CDA00188D29 /* SwiftGGFormatter.swift */,
90B11FFC2A2B8D0600188D29 /* Mapper.swift */,
);
path = SwiftGGFormatter;
Expand Down Expand Up @@ -138,7 +138,7 @@
buildActionMask = 2147483647;
files = (
90B11FFD2A2B8D0600188D29 /* Mapper.swift in Sources */,
90B11FF32A2B8CDA00188D29 /* main.swift in Sources */,
90B11FF32A2B8CDA00188D29 /* SwiftGGFormatter.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,13 @@ import Foundation
import SwiftGGFormater
import ArgumentParser

struct SwiftGGFormatterCLI: ParsableCommand {
@Argument(help: "TPlease provide the file path of the text you want to reorder.")
@main
struct SwiftGGFormatterCLI: AsyncParsableCommand {
static var configuration: CommandConfiguration {
.init(commandName: "SwiftGGFormatter")
}

@Argument(help: "Please provide the file path of the text you want to reorder.")
var path: String

mutating func run() async throws {
Expand Down

0 comments on commit ff820fd

Please sign in to comment.