Quantcast
Channel: iOS, Mac, tvOS, watchOS Programming
Viewing all articles
Browse latest Browse all 50

Combine command line tools into a command line toolbox

$
0
0
I have a number of small command line tools made over time, and I'm thinking of combining them into one command line tool.
It's not a project as yet, but just a concept I'm playing around with, so there's no code base as yet which I can post.
But some thing like this below for the main.swift file.

Swift:
//main.swift
import Foundation

func run() {
  
    var toolType: Any
  
    let arguments = Array(CommandLine.arguments)
    if arguments.count == 0 {
        print("Error: No tool...

Read more

Viewing all articles
Browse latest Browse all 50

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>