Мы используем 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
Liberty. Equality. Fraternity.
And don't forget to leave the keys...
Today, TON and Telegram represent a decentralized spaceship with 13 million inhabitants on board, ahead of its time. Cryptocurrency gives many people hope for a free and secure life. Web3 is not just about pixel images and taps; it is also a technology uniting millions of people who today collect coins together and tomorrow could make an important decision for the whole world.
In the few years since TON was established, communities have sprung up around the world—in almost all CIS countries, as well as in Denmark, Italy, Nigeria, Iran, South Korea, Hong Kong... these are just the ones that come to mind because I personally read them. But the community itself is huge and, most importantly, international. It is also very friendly. Just look at the scale of support for Pavel Durov with the ✈️ symbol that hundreds of channels with multimillion audiences simultaneously posted.
I have never encountered racial or religious animosity in TON chats. No one has offered me drugs or weapons. Politics are generally not discussed in crypto communities, except in terms of its impact on the exchange rate. Overall, this is a community of enthusiasts who are eager to learn new things and share their knowledge with others. So, I can confidently say that this is a healthy and sane community.
Against the backdrop of current events, it is worth remembering that the idea around which more than 13 million people worldwide have united is alive and thriving. If all these people lived in one country, that country would rank 75th in population among all the countries in the world. The main idea of the Telegram messenger and TON cryptocurrency is Freedom. Yes, the very freedom that its ideological inspirer Pavel Durov is currently deprived of.
#FreeDurov#TON#Telegram#Liberty
For over 20 years, the US has detained 39 Muslim men at Guantánamo Bay, with 27 never charged. The CIA operated secret "black sites" where at least 119 Muslim men were held and at least 39 tortured, without accountability. This system of unlawful detention, rendition, and abuse has cost billions, fueled propaganda by armed groups, and undermined global human rights.
[Read more]
@googlefactss#HumanRights#Guantanamo#Torture#Accountability#usa#liberty#LandOfTheFree
Trump Calls for Ross Ulbricht's Release
Senator Rand Paul urges President Trump to free Ross Ulbricht, the founder of Silk Road. Meanwhile, Coinbase CEO Brian Armstrong states Trump is excited about a Strategic Bitcoin Reserve, aiming to be the first Bitcoin President. Additionally, Binance's CEO predicts a crypto all-time high in 2025 amid clearer U.S. regulation under Trump. Critical Metals Corp raises $500M for Bitcoin reserve strategy as they accept BTC as treasury asset—first Nasdaq company in critical minerals sector to do so.
🔗 Related articles from Watcher Guru and CoinDesk.
#Bitcoin#USDC#Crypto#Trump#Coinbase#Binance#HesterPeirce#SEC#Decentralization#Finance#Investment#CriticalMetals#Aviation#Regulation#Liberty#Decentralized#Blockchain#CryptoNews#VC
#Bitcoin#USDC#Crypto#Trump#Coinbase#Binance#HesterPeirce#SEC#Decentralization#Finance#Investment#CriticalMetals#Aviation#Regulation#Liberty#Decentralized#Blockchain#CryptoNews#VC
Trump and the American Empire recovery/2
In the grand scheme, reclaiming America’s global dominance is critical to preserving liberty worldwide. Trump’s focus on expanding influence into Greenland, Canada, and the Panama Canal reflects this understanding. By securing these strategic positions, America strengthens its economy, protects vital trade routes, and curtails the growing influence of adversaries. The fight isn’t just about geography—it’s about values.
Trump’s vision recognizes that American strength is a bulwark against tyranny. A strong America doesn’t just serve Americans—it serves the cause of freedom for all.
But the ultimate success of this strategy depends on one thing: vigilance. America must remain true to its founding values of liberty, autonomy, and justice. That means balancing global influence with domestic safeguards, ensuring that while we project strength abroad, we don’t compromise freedom at home. Only then can the American empire thrive as a force for good, outshining authoritarian rivals like China and Russia, and ensuring a world where liberty reigns supreme.
#Canada#Greenland#Denmark#Trump#MAGA#China#Russia#Iran#War#Israel#America#US#USA#Liberty#Freedom#Politics#Panama
Part 1
@KayleighMcEnany