I am trying to make some changes in my life — to break some old habits and routines and replace them with new ones. I will use this blog to make myself accountable. Here I’ll update my progress…
One of the issues that I faced, after having developed a tool for me and for my colleagues, was: how can I distribute this CLI program internally? How can make sure that it works for every colleague and from every folder location?
Today I’d like to share with you how you can develop CLI programs and how to deliver them to your colleagues.
First of all, let’s start writing the program we want to export.
For the sake of this article, let’s start with something very simple: we want to echo the content of a .version
file.
We use this file to keep track of the current version and to automate some tasks when releasing a library.
Xcode will process these instructions and will prepare a file called main.swift
with the following code:
Now, replace this code with this one:
This code is pretty simple: it tries to read the content of a file called .version
and it trims it, removing spaces and newlines.
If there is an error…
I had been using Vim for simple config file editing and Linux tweaks. While searching the web for another Vim shortcut, I’ve stumbled upon ThePrimeagen’s channel and my first reaction was “Wow! I…
New York City-based LedgerX LLC (“LedgerX”) which is “a US-regulated trading platform for physically-settled digital currency derivatives”, has had its application for designation as a contract…
Nos arredores da leve Itaiópolis reza uma lenda de um extremo Senhor de Terras que tinha um prazer imenso que colocassem coisas no seu cu. Sim, no cu. Ânus não combina com meu linguajar. Um certo…