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.
Read more
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