SwiftShell - A Swift framework for shell scripting.

  •        58

A library for creating command-line applications and running shell commands in Swift. Launched with e.g. cat long.txt | print_linenumbers.swift or print_linenumbers.swift long.txt this will print the line number at the beginning of each line.

https://github.com/kareman/SwiftShell

Tags
Implementation
License
Platform

   




Related Projects

ShellOut - Easily run shell commands from a Swift script or command line tool

  •    Swift

Welcome to ShellOut, a simple package that enables you to easily “shell out” from a Swift script or command line tool. Even though you can accomplish most of the tasks you need to do in native Swift code, sometimes you need to invoke the power of the command line from a script or tool - and this is exactly what ShellOut makes so simple.

Splash - A fast, lightweight and flexible Swift syntax highlighter for blogs, tools and fun!

  •    Swift

Welcome to Splash - a fast, lightweight and flexible Swift syntax highlighter. It can be used to generate code sample HTML for a blog post, to turn a string of Swift code into a fully syntax highlighted image, or to build custom developer tools. Splash can be used either as a library in your own Swift Package Manager-powered tool or script, or by using one of the three built-in command line tools that act as frontends for the Splash library.

Files - A nicer way to handle files & folders in Swift

  •    Swift

Welcome to Files, a compact library that provides a nicer way to handle files and folders in Swift. It’s primarily aimed at Swift scripting and tooling, but can also be embedded in applications that need to access the file system. It's essentially a thin wrapper around the FileManager APIs that Foundation provides. Files can be easily used in either a Swift script, command line tool or in an app for iOS, macOS, tvOS or Linux.

Playground - Instantly create Swift playgrounds from the command line

  •    Swift

Welcome to playground, a Swift script that enables you to super quickly generate Swift playgrounds from the command line - with or without dependencies - for any supported platform. It essentially provides a command line interface to Xgen.

Beak - A command line interface for your Swift scripts

  •    Swift

Beak can take a standard Swift file and then list and run any public global functions in it via a command line interface. Beak analyzes your Swift file via SourceKit and finds all public and global functions. It uses information about the function and parameter names, types and default values to build up a command line interface. It also uses standard comment docs to build up descriptive help.


CommandLine - A pure Swift library for creating command-line interfaces

  •    Swift

A pure Swift library for creating command-line interfaces. Note: CommandLineKit master requires Xcode 8 / Swift 3.0. If you're using older versions of Swift, please check out the earlier releases.

Guaka - The smartest and most beautiful (POSIX compliant) Command line framework for Swift 🤖

  •    Swift

Guaka - Smart and beautiful POSIX compliant CLI framework for Swift. It helps you create modern and familiar CLI apps in the vein of widely used projects such as: Docker, Kubernetes, OpenShift, Hugo and more!. Guaka is both a swift library and a command line application that help generate Guaka projects. Inspired by the amazing Cobra package from the Golang's ecosystem.

Marathon - Marathon makes it easy to write, run and manage your Swift scripts 🏃

  •    Swift

Welcome to Marathon, a command line tool that makes it easy to write, run and manage your Swift scripts. It's powered by the Swift Package Manager and requires no modification to your existing scripts or dependency packages. 📦 Hassle free dependency management. Simply add a package...

Python Prompt Toolkit - Library for building powerful interactive command lines in Python

  •    Python

prompt_toolkit is a library for building powerful interactive command lines and terminal applications in Python. ptpython is an interactive Python Shell, build on top of prompt_toolkit. prompt_toolkit could be a replacement for GNU readline, but it can be much more than that.

SwiftFormat - A code library and command-line formatting tool for reformatting Swift code

  •    Swift

SwiftFormat is a code library and command-line tool for reformatting swift code. It applies a set of rules to the formatting and space around the code, leaving the meaning intact.

SwiftPlate - Easily generate cross platform Swift framework projects from the command line

  •    Swift

Easily generate cross platform Swift framework projects from the command line. Feel free to open an issue, or find me @johnsundell on Twitter.

Mint - A package manager that installs and runs Swift command line tools

  •    Swift

A package manager that installs and runs Swift command line tool packages. Mint is designed to be used with Swift command line tools that build with the Swift Package Manager. It makes installing, running and distributing these tools much easier.

Commandant - Type-safe command line argument handling

  •    Swift

Commandant is a Swift framework for parsing command-line arguments, inspired by Argo (which is, in turn, inspired by the Haskell library Aeson).For real-world examples, see the implementation of the Carthage command-line tool.

swift-protobuf - Plugin and runtime library for using protobuf with Swift

  •    Swift

Apple's Swift programming language is a perfect complement to Google's Protocol Buffer ("protobuf") serialization technology. They both emphasize high performance and programmer safety. This project provides both the command-line program that adds Swift code generation to Google's protoc and the runtime library that is necessary for using the generated code. After using the protoc plugin to generate Swift code from your .proto files, you will need to add this library to your project.

thirsty - Reminds you to drink water - on your terminal.

  •    Shell

zsh/bash script to remind you to drink water. If you're like me and you spend a lot of time programming with the command line open, chances are that you forget about everything for hours, which includes drinking water. At the end of the day I used to realise that I had not consumed enough water. Hence I created a bash/zsh script to remind me to drink water right on my command line.

google-images-download - Python Script to download hundreds of images from 'Google Images'

  •    Python

This is a command line python program to search keywords/key-phrases on Google Images and optionally download images to your computer. You can also invoke this script from another python file. This is a small and ready-to-run program. No dependencies are required to be installed if you would only want to download up to 100 images per keyword. If you would want more than 100 images per keyword, then you would need to install Selenium library along with chromedriver. Detailed instructions in the troubleshooting section.

FengNiao - A command line tool for cleaning unused resources in Xcode.

  •    Swift

FengNiao is a simple command-line util to deleting unused image resource files from you Xcode project. You need Swift Package Manager (as well as swift compiler) installed in your macOS, generally you are prepared if you have the latest Xcode installed.

Rainbow - Delightful console output for Swift developers.

  •    Swift

Rainbow adds text color, background color and style for console and command line output in Swift. It is born for cross platform software logging in terminals, working in both Apple's platforms and Linux. Thanks to the open source of Swift, developers now could write cross platform programs with the same language. And I believe the command line software would be the next great platform for Swift. Colorful and well organized output always helps us to understand what happens. It is really a necessary utility to create wonderful software.

Commander - Compose beautiful command line interfaces in Swift

  •    Swift

Commander is a small Swift framework allowing you to craft beautiful command line interfaces in a composable way.The closure passed to the command function takes any arguments that conform to ArgumentConvertible, Commander will automatically convert the arguments to these types. If they can't be converted the user will receive a nice error message informing them that their argument doesn't match the expected type.

python-swiftclient - OpenStack Storage (Swift) Client

  •    Python

This is a python client for the Swift API. There's a Python API (the swiftclient module), and a command-line script (swift).Development takes place via the usual OpenStack processes as outlined in the OpenStack wiki.