An open API service indexing awesome lists of open source software.

https://github.com/meniny/swiftycli

💻 A tool helps you to build command line application with Swift.
https://github.com/meniny/swiftycli

Last synced: 11 months ago
JSON representation

💻 A tool helps you to build command line application with Swift.

Awesome Lists containing this project

README

          

:name: SwiftyCLI
:author: Elias Abel
:mail: admin@meniny.cn
:desc: a Swifty command lint tool
:version: 1.0.0
:na: N/A
:yes: ✔️
:no: ❌
:ios: {na}
:macos: 10.9
:watchos: {na}
:tvos: {na}
:linux: {yes}
:xcode: 9.3
:swift: 4.1
:license: MIT
:platform: macOS
= Meet `{name}`
{author} <{mail}>
v{version}, 2018-05-08

[subs="attributes"]
++++


{name}



Author
EMail
MIT


Version
Platforms
Swift


Build Passing
Cocoapods
Carthage
SPM


++++

:toc:

== 🏵 Introduction

**{name}** is {desc}.

== 📋 Requirements

[%header]
|===
2+^m|Type 1+^m|Requirement

1.5+^.^|Platform ^|iOS ^|{ios}+
^|macOS ^e|{macos}
^|tvOS ^e|{tvos}
^|watchOS ^e|{watchos}
^|Linux ^e|{linux}

^|IDE ^|Xcode ^| {xcode}+
^|Language ^|Swift ^| {swift}+
|===

== 📲 Installation

=== CocoaPods

`{name}` is available on link:https://cocoapods.org[CocoaPods].

[source, ruby, subs="verbatim,attributes"]
----
platform :osx, '{macos}'
use_frameworks!
pod '{name}'
----

==== 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:

[source, console, subs="verbatim,attributes"]
----
$ gem install cocoapods-rome
----

[source, ruby, subs="verbatim,attributes"]
----
platform :osx, '10.10'

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

target 'TargetName' do
use_frameworks!
pod '{name}', :path => '../'
end
----

=== Manually

Copy all files in the `{name}` directory into your project.

== 🛌 Dependency

{na}

== ❤️ Contribution

You are welcome to fork and submit pull requests.

== 🔖 License

`{name}` is open-sourced software, licensed under the link:./LICENSE.md[`{license}`] license.

== 🔫 Usage

.YourScript.swift
[source, swift, subs="verbatim,attributes"]
----
#!/usr/bin/env xcrun swift -F ./Rome/ -framework SwiftyCLI

import {name}

// ...
----

[CAUTION]
====
The tree of your folder should look like this:
[source, console, subs="verbatim"]
----
.
├── YourScript.swift

├── Podfile
├── Pods
│   └── ...
└── Rome
   └── SwiftyCLI.framework
----
====

== ♨️ Running

To run your script file:

[source, console, subs="verbatim,attributes"]
----
$ chmod a+x YourScript.swift
$ ./YourScript.swift
----