Мы используем 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
Bot API 7.0
Announcing our biggest Bot API update yet!
Reactions
• Introducing full reaction support for bots.
• Bots can now react to messages with setMessageReaction.
• Message reactions now generate updates for bots.
• Added the available_reactions field to the class Chat.
Replies 2.0
• Bots can now reply to messages in other chats or topics.
• Added the ExternalReplyInfo class, to track replies across chats.
• The new class ReplyParameters replaces individual reply options in all relevant methods and lets bots quote parts of any message.
• The new field quote of the class Message lets bots detect incoming quoted text.
Link Preview Customization
• Bots can now set a custom URL to generate link previews in outgoing messages.
• Added support for custom size and position of link previews.
• Added the class LinkPreviewOptions to support these new options.
Batch Actions
• Bots can now delete multiple messages in a single request via deleteMessages.
• Bots can now forward or copy multiple messages in a single request via the respective forwardMessages and copyMessages methods.
Boosts & Giveaways
• Added support for Giveaway messages, allowing bots to detect their creation and completion.
• Added updates about chat boost changes via the new classes ChatBoostUpdated and ChatBoostRemoved.
• Bots can now see if a boost came from a premium sub, a gift code, or a giveaway, as well as check all active user boosts via getUserChatBoosts.
General
•Blockquotes are now supported in MarkdownV2 and HTML parse modes.
• Web Apps won't close when calling openTelegramLink.
• Web Apps can now toggle the visibility and on-click behavior of the Settings Button.
• Bots can now request multiple users, see KeyboardButtonRequestUsers.
• The class Chat has new fields holding profile and background colors, custom emoji, and more.
• And a great deal more. See the full changelog for details:
https://core.telegram.org/bots/api-changelog#december-29-2023
Happy Holidays from the Telegram Team 🎆
🆓REDEEM CODES🆓
🚀AFK Arena New #Codes [#December 2025]
👉Code:【 u4fctemje2 】
🎁Gift: 1k diamonds and multiple eight-hour boosts
For your convenience, we have arranged all new working AFK Arena codes. Go to 🔗AFK Arena Redeem Code (Complete List) for a batch of active redeem codes.
Add @APKFreeDownloader_Bot to get any apk you want.
Wikipedia每日一图(#December 29, 2025)https://ift.tt/8t1Yzmk
Pirogue running on the Mekong in front of an island hosting a Samanea saman (rain tree) and other trees, at sunset with pink clouds, seen from Don Det, Si Phan Don, Laos.. 了解更多 . #Wikipedia每日一图
Wikipedia每日一图(#December 26, 2025)https://ift.tt/oXURLCx
The American heavy metal band Soulfly at the With Full Force Summer Open Air 2018 in Ferropolis, Germany. 了解更多 . #Wikipedia每日一图
Wikipedia每日一图(#December 23, 2025)https://ift.tt/civyKR8
JŽ 06-018 steam locomotive gear, museum steam locomotive, Central station Ljubljana, Slovenia. 了解更多 . #Wikipedia每日一图
Wikipedia每日一图(#December 22, 2025)https://ift.tt/MABV5Fk
Snow on Ayase river by Shōtei Takahashi. 1915 woodcut print from the Rijksmuseum collection.. 了解更多 . #Wikipedia每日一图
Wikipedia每日一图(#December 21, 2025)https://ift.tt/3A18ovM
View of coastline northwest from above Manarola: fields and steep trail to Volastra in foreground, Corniglia Station and town centre, north to Punta Mesco. Depicts the north half of Cinque Terre National Park coastline. Liguria, Italy. 了解更多 . #Wikipedia每日一图