Мы используем Makefile думая, что нет альтернатив, что это стандарт и всё такое.
Но make это не запускалка команд, а система сборки. Мы фактически используем его не по назначению.
И на самом деле альтернатива есть! Некоторое время назад я открыл для себя прекрасный инструмент - just. Он решает все проблемы make.
just - это не система сборки как make, это именно исполнитель команд!
Больше никаких Phony Targets и табуляций, привет нормальный синтаксис и передача аргументов!!! 😎
⭐️Что умеет just:
✅ Автодокументирование команд
Не нужно делать отдельную команду с докой, просто добавь комментарий
# команда сборки
build:
...
$ just --list
Available recipes:
build # команда сборки
Команда с именем default запускается по умолчанию если не указано другое, так что я обычно делаю так:
default:
just --list
Теперь просто выполняем just и получаем доку из текущего файла.
✅ Удобная работа с переменными окружения
# загрузить из .env
set dotenv-load
# глобальная переменная
export PYTHONPATH := "./src"
# переменная для команды
test $TESTUNG="true":
pytest
✅ Передача аргументов
build target:
@echo 'Build {{target}}...'
команда запуска
$ just build dev
# Build dev...
✅ Выбор интерпретатора прямо в команде
Пример с инлайн-скриптом на python:
system:
#!/usr/bin/env python3
import platform
print(platform.system())
Эта же функция позволит выполнить скрипт как одну команду вместо перезапуска шела для каждой строки
foo:
#!/usr/bin/env sh
for file in ls .; do
echo $file
done
✅ Выполнение команды в определенной директории. Можно указать как релятивный путь так и абсолютный
[working-directory: 'backend']
build:
docker compose build
Также можно задать рабочую директорию глобально
Там еще много интересного:
- поддержка функций
- автокомплиты и интеграции
- экспрешены
- алиасы команд
- группировка команд
- альтернативы команды под разные ОС
- импорт других just-файлов
- цветной вывод
- ... и другие штуковины!
Так что вперёд - ➡️ читать доку!
Репозиторий: ➡️https://github.com/casey/just
Статья: ➡️https://www.chicks.net/reference/file_formats/just/
ЗЫ. Кажется, на Makefile я уже не вернусь)
#tools
#Impeachment: con 221 favorevoli e 212 contrari, la Camera dei Rappresentanti formalizza l'inchiesta di impeachment nei confronti di Joe Biden.
Questo darà alle Commissioni della Camera un maggior potere ispettivo nei confronti della Casa Bianca e saranno in grado di ottenere testimonianze e prove.
📢 EXCLUSIVE: House Dems secretly meet with GOP to kill Biden impeachment. Republicans consider Biden's record of cooperation. Fact sheets shared to quash inquiry. Dems defend Biden's firing of Ukrainian prosecutor. FBI probe alleges bribery scheme. Biden received funds from brother. GOP demands White House docs. Biden communicated with son via email alias. Impeachment inquiry framework to be formalized. Corruption investigation continues. Stay tuned for updates! 🕵️♀️🔍#Politics#Corruption#Impeachment
https://www.foxnews.com/politics/house-oversight-democrat-quietly-meeting-gop-lawmakers-effort-quash-impeachment-inquiry-sources
Subscribe to @BadVolfNews
⚖️🇺🇸HOUSE DEMOCRATS LAUNCH IMPEACHMENT AGAINST DEFENSE SECRETARY HEGSETH
🔹 Six articles filed by Rep. Yassamin Ansari over unauthorized Iran military strikes without Congress approval 📋
🔹 Accusations include targeting civilians, destroying girls school in Minab, Iran during operations 🎯
🔹 Illegal double-tap strikes on Caribbean drug boats — hitting first responders after initial attack 🚢
🔹 Signalgate scandal: sharing classified Yemen strike details via Signal app to unauthorized personnel 📱
White House dismisses as political theater, but war crimes allegations stack up! 🔥
#USNews#impeachment#Hegseth
@america
On January 26, 1998, President Bill Clinton held a news conference and denied having sexual relations with Monica Lewinsky, a 22-year-old White House aide. Later that year, he was impeached for lying about the affair but was acquitted by the Senate and finished his term.
🇺🇲🧐
[Read more]
@googlefactss
#Clinton#Lewinsky#Impeachment#USHistory#FactCheck#ItWasntMe
Argentina's Opposition Eyes Impeachment Over LIBRA
Argentina's opposition is considering impeachment for President Milei after conflicting support for the LIBRA token. This follows a controversial launch that saw rapid investment and then a significant drop in value, leading to accusations of mismanagement and deception. The situation raises questions about political influence in cryptocurrency projects.
Read more: Reuters
#Argentina#LIBRA#Crypto#Impeachment#Milei#Investment#MarketManipulation#EconomicCrisis#Blockchain#DeFi#RugPull#Politics#Cryptocurrency#TokenLaunch#InsiderTrading#Securities#AI#VC
Argentina Investigates LIBRA Token Misconduct
Argentina's President Javier Milei calls for an investigation into LIBRA token's rug pull, requesting the Anti-Corruption Office's involvement to assess potential misconduct by government members. Findings will be forwarded to the court. Opposition considers impeachment due to the incident. Links: Statement, Watch, Details.
#LIBRA#Crypto#Argentina#investigation#rugpull#president#JavierMilei#impeachment#KIPProtocol#AntiCorruption#fundflow#temporalanalysis#MELANIA#ENRON#Solana#ETF#Bitcoin#adoption#blockchain#corruption#misconduct