Мы используем 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
📘Understanding #Web3 AI with #AINFT
From #ChatGPT to #Claude, we break down how top #AI models work — and how AINFT unifies them on one platform.🤖
No hype. Just clarity.
🗓 12 Feb · 8AM (UTC)
📍 Venue: HTX English Telegram Group
✈️Telegram | ✖️X
✅Announcements
🚀 AINFT Platform Surpasses 700,000 Users, Advances in Web3 AI
The AINFT platform has officially exceeded 700,000 users, according to official data. According to Odaily, the growing user base and the continuous enhancement of AI model capabilities are propelling it to become a leading AI platform in the Web3 sector. AINFT currently offers users AI models ready for production and fully supports the execution of on-chain automated workflows, facilitating a rapid transition from creative ideas to on-chain implementation. Leveraging its expanding community and open technical architecture, AINFT aims to lower the barriers to using Web3 AI, enabling more efficient deployment of innovative applications.
#AINFT#700000Users#Web3#AIPlatform#AI#Blockchain#OnChain#AutomatedWorkflows#Web3AI#Innovation#Technology#Community
🚀 AINFT Transitions to B.AI Brand Focused on Agent Finance
The official Twitter account of AINFT will transition to B.AI starting today. According to ChainCatcher, the B.AI brand aims to advance Agent Finance, which involves AI Agents autonomously managing funds, executing trades, and optimizing returns, thereby granting artificial intelligence true financial autonomy and accelerating the realization of Artificial General Intelligence (AGI). To ensure a smooth transition for the community, the brand will implement phased upgrades to avoid the impact of a one-time switch. During this process, AINFT will continue to operate as a core sub-brand within the B.AI ecosystem. All content, technological iterations, and community activities related to AINFT will be migrated to the new platform @AINFTcom.
#B_AI#Agent_Finance#AI_Agents#Artificial_Intelligence#AGI#Technology_Transition#AINFT#Financial_Autonomy#Blockchain#Crypto