πŸ’» A tool helps you to build command line application with Swift.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Assets
Sample
SwiftyCLI
.gitignore
LICENSE.md
README.adoc
SwiftyCLI.podspec
_config.yml

README.adoc

Meet SwiftyCLI

SwiftyCLI

Author EMail MIT
Version Platforms Swift
Build Passing Cocoapods Carthage SPM

🏡 Introduction

SwiftyCLI is a Swifty command lint tool.

πŸ“‹ Requirements

Type Requirement

Platform

iOS

N/A+

macOS

10.9

tvOS

N/A

watchOS

N/A

Linux

βœ”οΈ

IDE

Xcode

9.3+

Language

Swift

4.1+

πŸ“² Installation

CocoaPods

SwiftyCLI is available on CocoaPods.

platform :osx, '10.9'
use_frameworks!
pod 'SwiftyCLI'

Rome

Add plugin 'cocoapods-rome' to your Podfile.

Then, before you run pod insall, you have to install [cocoapods-rome](https://github.com/neonichu/Rome) plugin:

$ gem install cocoapods-rome
platform :osx, '10.10'

plugin 'cocoapods-rome', {
  dsym: true,
  configuration: 'Release'
}

target 'TargetName' do
  use_frameworks!
  pod 'SwiftyCLI', :path => '../'
end

Manually

Copy all files in the SwiftyCLI directory into your project.

πŸ›Œ Dependency

N/A

❀️ Contribution

You are welcome to fork and submit pull requests.

πŸ”– License

SwiftyCLI is open-sourced software, licensed under the MIT license.

πŸ”« Usage

YourScript.swift
#!/usr/bin/env xcrun swift -F ./Rome/ -framework SwiftyCLI

import SwiftyCLI

// ...
Caution

The tree of your folder should look like this:

.
β”œβ”€β”€ YourScript.swift
β”‚
β”œβ”€β”€ Podfile
β”œβ”€β”€ Pods
β”‚Β Β  └── ...
└── Rome
 Β Β  └── SwiftyCLI.framework

♨️ Running

To run your script file:

$ chmod a+x YourScript.swift
$ ./YourScript.swift