Мы используем 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
🙈 After the ban on accepting organic waste, Bali authorities faced an unexpected consequence: residents began massively burning trash right in their own yards
ℹ️ The decision to restrict organic waste intake was made to accelerate the transition to village-level waste processing systems. Now the island’s largest landfill only accepts non-organic and residual waste. The reason is critical overload: up to 65% of Bali’s waste is organic with high moisture content, leading to methane emissions, unpleasant odors, and rapid overfilling of the site.
🔥 However, in practice, the ban has triggered a wave of uncontrolled waste burning. Lacking sufficient recycling infrastructure, local residents have resorted to the simplest method of disposal – fire.
#rules@BaliNews
🌱 Bali’s main landfill stopped taking organic waste (April 2026) and will fully close by August
👮♀️ Police are monitoring the site, but short-term issues like illegal dumping and river pollution may increase during the transition.
🚮 Tourists: you might notice more trash in some areas – travel responsibly.
#rules@BaliNews
🪧Bali installs signs with rules of behavior on the island
📰 The Department of Tourism of Bali province is concerned about the number of violations of the rules of behavior on the island by tourists. Now it is intensifying the installation of information signs with infographics explaining the rules of behavior on the island – Do's and Don'ts.
📍 The plan is to install these signs at 10 key locations in Kuta, Changgu, Seminyak, Uluwatu, Tanah Lote and Bedugul where the chance of reading the rules will be high.
🤞 This is expected to reduce the number of violations so often committed by foreign tourists.
What Do's should be followed first of all?
@BaliNews
#tourism#rules
👮♂️Governor to take firm and tough action against foreign tourists who behave badly while in Bali
📰 The statements come after an American national was arrested and deported after going on a rampage in a hospital on the island under the influence of drugs.
🇺🇸 The 27-year-old US citizen, known by his initials MM, tested positive for drugs, though was deported from Indonesia without criminal prosecution as ‘no evidence’ was found to charge him with drug possession.
❌ He has been added to the blacklist and will be denied entry to Indonesia in the future.
@BaliNews
#rules#goodnews