Swift Package Index


Rewrite your scripts in Swift


  • The latest stable release is 1.0.4. Released almost 2 years ago.
  • The last commit to master was almost 2 years ago.

Swift Version Compatibility

  • 1.0.4 and master
    5.3
    5.2
    5.1
    5.0
    4.2
Full build results

Platform Compatibility

  • 1.0.4 and master
    iOS
    macOS(Intel)
    macOS(ARM)
    Linux
    tvOS
    watchOS
Full build results

macOS Xcode Swift Version SwiftPM compatible Plaform License MIT

What is ScriptKit?

ScriptKit is a framework to write command line tools. This framework provides a context that reproduces the basic instructions we have in a script language like Bash, Python or Ruby. It allows a quick portage of existing script to swift.

Do I have to be a Swift Guru?

No 😁. ScriptKit has been designed to be as simple as possible. You can see ScriptKit as a container that give you access to list of basic instructions.

What is the advantage of using ScriptKit?

ScriptKit allows to create a real executable that will be much faster than a script in Bash, Python or Ruby. With ScriptKit you generated an executable with no dependencies. It is therefore very easy to install and you don't need to manage an environment like for Python or Ruby.

If you are an iOS or macOS developer you will no longer need to juggle with different languages. You can use Xcode to develop and debug your command line tools, your iOS app or macOS app. You will stay focus on Swift and spend your time improving your skills in Swift.

Documentation

Your first command line tool

1. Install XcodeTool

2. To generate your first command line tool project:

image

XcodeTool will generate this project for you:

image

3. Open your first command line tool with Xcode

image