Swift CommandLine with ArgumentParser

  Переглядів 3,956

Stewart Lynch

Stewart Lynch

День тому

In this video we will be creating two command line tools using Swift and the Swift ArgumentParser framework from Apple.
We will build a password generator that we can access from the terminal along with a tool for encrypting and decrypting documents.
If you want to support my work, you can buy me a coffee :)
ko-fi.com/stewartlynch
******* Download my StewartLynch UKposts Channel Application - Free **********
stewartlynch.gumroad.com/l/obsjz
Table of Contents:
0:00 Introduction
4:11 ArgumentParser Documentation
4:38 Password Generator
19:42 Encryption and Decryption Utility
Completed Projects:
github.com/StewartLynch/Swift...
References mentioned in video:
Swift ArgumentParser
apple.github.io/swift-argumen...
RNCryptor:
github.com/RNCryptor/RNCryptor
Other References:
Stewart Lynch's UKposts Channel:
/ stewartlynch
Stewart Lynch on Twitter:
/ stewartlynch

КОМЕНТАРІ: 19
@LS-jv4uh
@LS-jv4uh 6 місяців тому
Thank you! Best intro to Swift CLI for beginners I've been able to find. Keep 'em coming!
@chrispy104k
@chrispy104k 2 роки тому
Very interesting Stewart.
@iosdeveloper4829
@iosdeveloper4829 2 роки тому
Wow 🤩 nice work thank you very much 😊
@wisanjanchot5817
@wisanjanchot5817 8 місяців тому
This is awesome and very useful video 👍
@StewartLynch
@StewartLynch 8 місяців тому
Glad you liked it
@Jaroshevskii
@Jaroshevskii Рік тому
Thanks 👍
@andresraigoza2082
@andresraigoza2082 Рік тому
Awesome, thank you so much
@StewartLynch
@StewartLynch Рік тому
Glad you enjoyed it
@gabrielabezerra3434
@gabrielabezerra3434 2 роки тому
Awesome video! Very useful ✨ Thanks! Just one thing: there's a little typo on the video's title, Pasrser. It might be keeping your video from showing up when people search for ArgumentParser and Swift.
@StewartLynch
@StewartLynch 2 роки тому
Great. Thanks for catching that. I have updated that title. Don't know how I missed that.
@nitesh-maharaj
@nitesh-maharaj Рік тому
Hey Stewart, great video. I wonder if you can pipe data from one command to another, example pipe the output from your password generator command into the cipher command?
@StewartLynch
@StewartLynch Рік тому
Good question though it gets to be kind of specific. You would be better off creating a single command line project that did both. I would have to think more about this.
@sebaszwarc
@sebaszwarc Рік тому
I believe building package that way won't work if you need to use API like MusicKit that requires authorisation requests using provisioning profile
@StewartLynch
@StewartLynch Рік тому
How would you suggest the package be built then? For the examples provided, and for many use cases, I believe that this approach is fine though.
@jackdanyal4329
@jackdanyal4329 Рік тому
but how we can build it and share it as an actual app that can be used by other users?
@StewartLynch
@StewartLynch Рік тому
I use Mint -> github.com/yonaskolb/Mint
@jackdanyal4329
@jackdanyal4329 Рік тому
@@StewartLynch great. thank you!
@Jock3R87
@Jock3R87 Рік тому
Hi Mark.. Thanks for your video. However while following your steps and running the programme i am getting below error warning: Usage of /Users/UserName/Library/org.swift.swiftpm/collections.json has been deprecated. Please delete it and use the new /Users/UserName/Library/org.swift.swiftpm/configuration/collections.json instead. Building for debugging... ld: warning: undefined base symbol '_CronJob_main' for alias '_main' Undefined symbols for architecture arm64: "_main", referenced from: implicit entry/start for main executable ld: symbol(s) not found for architecture arm64 [0/1] Linking CronJob
@StewartLynch
@StewartLynch Рік тому
Who is Mark?
Build ENTIRE Frontends With ONE Prompt - OpenUI Tutorial
8:59
Matthew Berman
Переглядів 23 тис.
Building a CLI app in Swift with Pol Piella
58:35
iOS Mastery
Переглядів 1,5 тис.
Python vs Swift | Prime Reacts
19:44
ThePrimeTime
Переглядів 65 тис.
Swift Closures Explained
14:23
Sean Allen
Переглядів 56 тис.
Learn HTML5 and CSS3 For Beginners - Crash Course
3:54:03
developedbyed
Переглядів 2,4 млн
Swift 5.9 Released | Prime Reacts
14:36
ThePrimeTime
Переглядів 58 тис.
I tried coding on my iPad for 7 days
7:25
Adrian Twarog
Переглядів 1,7 млн
Use your iPad as a Mac Mini monitor - unleash ultimate portability
5:35
Learning and Technology with Frank
Переглядів 33 тис.
XCode Command Line Tools - Explanation and Tutorial
5:16
RailsApps
Переглядів 30 тис.
Big Tech AI Is A Lie
16:56
Tina Huang
Переглядів 56 тис.
Execute Terminal Commands in Swift MacOS app
13:46
Kelvin
Переглядів 1 тис.
Phone repairs are getting ridiculous - Here's why.
22:24
Mrwhosetheboss
Переглядів 1,1 млн
СМАРТФОНЫ HTC ВЕРНУЛИСЬ В 2024! Шок для Apple, Samsung и Xiaomi...
11:51
Thebox - о технике и гаджетах
Переглядів 27 тис.
Infrared Soldering Iron from Cigarette Lighter
0:58
ALABAYCHIC
Переглядів 1,9 млн
HUAWEI БЕЗ GOOGLE: ЕСТЬ ЛИ ЖИЗНЬ? | РАЗБОР
11:49