All Projects → SvenTiigi → Swiftplaygroundscli

SvenTiigi / Swiftplaygroundscli

Licence: mit
Easily generate Swift Playgrounds from your command line 👨‍💻

Programming Languages

swift
15916 projects
script
160 projects

Projects that are alternatives of or similar to Swiftplaygroundscli

Swiftkit
Start your next Open-Source Swift Framework 📦
Stars: ✭ 785 (+662.14%)
Mutual labels:  cli, xcode, brew
Licenseplist
A license list generator of all your dependencies for iOS applications
Stars: ✭ 1,996 (+1837.86%)
Mutual labels:  cli, xcode
Swiftcolorgen
A tool that generate code for Swift projects, designed to improve the maintainability of UIColors
Stars: ✭ 152 (+47.57%)
Mutual labels:  cli, xcode
Things.sh
Simple read-only comand-line interface to your Things 3 database
Stars: ✭ 492 (+377.67%)
Mutual labels:  cli, brew
Natrium
A pre-build (Swift) script to alter your Xcode project at pre-build-time per environment, build configuration and target.
Stars: ✭ 131 (+27.18%)
Mutual labels:  cli, xcode
Xcassetpacker
A command line tool for converting a folder of images into an .xcasset package for Xcode
Stars: ✭ 150 (+45.63%)
Mutual labels:  cli, xcode
Xcodegen
A Swift command line tool for generating your Xcode project
Stars: ✭ 5,032 (+4785.44%)
Mutual labels:  cli, xcode
Swiftplate
Easily generate cross platform Swift framework projects from the command line
Stars: ✭ 1,746 (+1595.15%)
Mutual labels:  cli, xcode
Xcbt
⌛️xcbt shows Xcode build time of a specified project.
Stars: ✭ 14 (-86.41%)
Mutual labels:  cli, xcode
Buildxl
Microsoft Build Accelerator
Stars: ✭ 676 (+556.31%)
Mutual labels:  cli, xcode
Appicon
AppIcon generates *.appiconset contains each resolution image for iOS
Stars: ✭ 1,454 (+1311.65%)
Mutual labels:  cli, xcode
Mod Pbxproj
A python module to manipulate XCode projects
Stars: ✭ 959 (+831.07%)
Mutual labels:  cli, xcode
Gltf To Usdz Research
Research and proof of concept of converting glTF to USDZ for AR Quick Look (iOS 12+).
Stars: ✭ 164 (+59.22%)
Mutual labels:  cli, xcode
Shenzhen
CLI for Building & Distributing iOS Apps (.ipa Files)
Stars: ✭ 4,668 (+4432.04%)
Mutual labels:  cli, xcode
Swiftinfo
📊 Extract and analyze the evolution of an iOS app's code.
Stars: ✭ 880 (+754.37%)
Mutual labels:  cli, xcode
Spellchecker
SpellChecker for Xcode
Stars: ✭ 79 (-23.3%)
Mutual labels:  cli, xcode
Redis Cui
Simple, visual command line tool for redis
Stars: ✭ 101 (-1.94%)
Mutual labels:  cli
Py Todo
📋 Lightweight reminder / todo-list in cli
Stars: ✭ 102 (-0.97%)
Mutual labels:  cli
Sysbox
sysadmin/scripting utilities, distributed as a single binary
Stars: ✭ 101 (-1.94%)
Mutual labels:  cli
Npm Quick Run
Quickly run NPM script by prefix without typing the full name
Stars: ✭ 97 (-5.83%)
Mutual labels:  cli

SwiftPlaygroundsCLI Header Logo

Swift 5.1 CI Status Version Documentation
Mint brew Twitter


Easily generate Swift Playgrounds from your command line
for the new Playgrounds App on macOS 👨‍💻

Demo

Features

  • [x] Easily generate and instantly open Swift Playgrounds
  • [x] Generate Playground with SwiftUI template
  • [x] Open code from GitHub in a Swift Playground

Installation

Before installing the SwiftPlaygroundsCLI please make sure you have downloaded the Playgrounds.app from the Mac App Store.

Mint 🌱

Mint is a package manager that installs and runs Swift command line tool packages.

$ mint install SvenTiigi/SwiftPlaygroundsCLI

Homebrew 🍺

Homebrew is a free and open-source software package management system that simplifies the installation of software on Apple's macOS operating system.

$ brew tap SvenTiigi/SwiftPlaygroundsCLI
$ brew install swiftplaygroundscli

Usage 👨‍💻

To generate a new Swift Playground simply run:

$ swiftplayground new

If you wish to specify a name for the Playground run:

$ swiftplayground new MyAwesomePlayground

Generate a Playground from your clipboard content via:

$ swiftplayground new --clipboard

To generate a Playground with a SwiftUI template run:

$ swiftplayground new --view

View Option Demo

A Playground with contents from a GitHub URL can be generated via:

$ swiftplayground new --url https://gist.github.com/SvenTiigi/7eae5e55edd9be41211470fcbd937285

Remote Option Demo

Arguments

A list of the available arguments that are supported by the SwiftPlaygroundsCLI.

new command

Long parameter Short parameter Description
--clipboard -c Generate a Playground from the current Clipboard content
--silent -s Generate a Playground without opening the Playgrounds application
--url -u Generate a Playground with contents from a URL
--view -v Generate a Playground with a SwiftUI template

Featured on

Contributing

Contributions are very welcome 🙌 🤓

Credits

SwiftPlaygroundsCLI is inspired by Playground from JohnSundell

License

SwiftPlaygroundsCLI
Copyright (c) 2020 Sven Tiigi <[email protected]>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].