Skip to content

Commit

Permalink
Release v1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
leoho0722 committed Jun 23, 2024
1 parent 3f234bd commit e1e8044
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 25 deletions.
7 changes: 3 additions & 4 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
// swift-tools-version: 5.7
// The swift-tools-version declares the minimum version of Swift required to build this package.
// swift-tools-version: 5.8

import PackageDescription

let package = Package(
name: "SFSymbolsGenerator",
platforms: [.macOS(.v13)],
platforms: [.macOS("13.3")],
dependencies: [
.package(url: "https://github.com/apple/swift-argument-parser.git", from: "1.2.0"),
.package(url: "https://github.com/apple/swift-argument-parser.git", from: "1.4.0"),
],
targets: [
// Targets are the basic building blocks of a package, defining a module or a test suite.
Expand Down
22 changes: 9 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,12 @@ Simplifying SF Symbols Enumeration Generation with Swift!

## Currently Support States

* Support SF Symbols 6 beta
* Support SF Symbols 5

## Minimum OS Requirement

* macOS Ventura 13.0 (Compatible with Intel and Apple Silicon-based Macs)
* macOS Ventura 13.3 (Compatible with Intel and Apple Silicon-based Macs)

## How to Use

Expand All @@ -22,25 +23,20 @@ Simplifying SF Symbols Enumeration Generation with Swift!
2. Open Terminal.app (notes: check current path exists SFSymbolsGenerator binary file!)
3. run ```./SFSymbolsGenerator <filepath>```, and Happy use it!

#### Argument
### Argument

| Argument | Description | Required or Optional |
|------------|-----------------------------| :------------------: |
| filepath | Specify filepath of output. | **Required** |

#### Flag
### Flag

| Argument | Description | Required or Optional |
|------------|-----------------------------| :------------------: |
| --name | Specify filename of output. | **Optional** |

#### Flag

| Argument | Description | Required or Optional |
|------------|---------------------| :------------------: |
| --use-beta | Use SF Symbols beta | **Optional** |
| Argument | Description | Required or Optional |
|------------|---------------------------------------------------------|:--------------------:|
| --name | Specify filename of output. Default is `SFSymbols+Enum` | **Optional** |
| --use-beta | Use SF Symbols beta | **Optional** |

##### Example
## Example

```shell
# Normal Usage
Expand Down
18 changes: 10 additions & 8 deletions Sources/SFSymbolsGenerator.swift
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
// The Swift Programming Language
// https://docs.swift.org/swift-book
//
// Swift Argument Parser
// https://swiftpackageindex.com/apple/swift-argument-parser/documentation

import Foundation
// SFSymbolsGenerator.swift
// SFSymbolsGenerator
//
// Created by Leo Ho on 2023/10/27.
//

import ArgumentParser
import Foundation

@main
struct SFSymbolsGenerator: ParsableCommand {

static let configuration = CommandConfiguration(abstract: "Simplifying SF Symbols Enumeration Generation with Swift!",
version: "0.0.1")
static let configuration = CommandConfiguration(
abstract: "Simplifying SF Symbols Enumeration Generation with Swift!",
version: "1.1.0"
)

@Argument(
help: "[Required] Specify filepath of output. Example: /Users/<YOUR_USERNAME>/Desktop"
Expand Down

0 comments on commit e1e8044

Please sign in to comment.