Skip to content

Commit a112164

Browse files
committed
Use swift-argument-parser to get current version
1 parent 8a24357 commit a112164

File tree

4 files changed

+3
-19
lines changed

4 files changed

+3
-19
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
cd "$( dirname "${BASH_SOURCE[0]}" )"
22
cd ..
33
perl -i -pe 's/\b(\d+)(?=.\d+")/$1+1/e' FigmaExport.podspec
4-
perl -i -pe 's/\b(\d+)(?=.\d+")/$1+1/e' ./Sources/FigmaExport/Subcommands/VersionOptions.swift
4+
perl -i -pe 's/\b(\d+)(?=.\d+")/$1+1/e' ./Sources/FigmaExport/main.swift
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
cd "$( dirname "${BASH_SOURCE[0]}" )"
22
cd ..
33
perl -i -pe 's/\b(\d+)(?=\D*$)/$1+1/e' FigmaExport.podspec
4-
perl -i -pe 's/\b(\d+)(?=\D*$)/$1+1/e' ./Sources/FigmaExport/Subcommands/VersionOptions.swift
4+
perl -i -pe 's/\b(\d+)(?=\D*$)/$1+1/e' ./Sources/FigmaExport/main.swift

Sources/FigmaExport/Subcommands/VersionOptions.swift

Lines changed: 0 additions & 14 deletions
This file was deleted.

Sources/FigmaExport/main.swift

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ struct FigmaExportCommand: ParsableCommand {
3535
commandName: "figma-export",
3636
abstract: "Exports resources from Figma",
3737
discussion: "Exports resources (colors, icons, images) from Figma to Xcode / Android Studio project",
38+
version: "0.18.3",
3839
subcommands: [
3940
ExportColors.self,
4041
ExportIcons.self,
@@ -45,9 +46,6 @@ struct FigmaExportCommand: ParsableCommand {
4546
defaultSubcommand: ExportColors.self
4647
)
4748

48-
@OptionGroup()
49-
var versionOptions: VersionOptions
50-
5149
}
5250

5351
FigmaExportCommand.main()

0 commit comments

Comments
 (0)