Мы используем 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
🚀 Big News! We’re joining forces with major DEXs to take our Web3 journey to the next level!
🌐But more importantly, YOUR voice matters. 🗳️ Cast your vote on our latest community proposal and shape the future of decentralized social platforms!
Vote now 👉 [https://snapshot.box/#/s:uxlinkcommunity.eth/proposal/0xee641f312d19250357b0682604e167f4cfc259768c1c2d2aaa8e107a7feb8ffc]
#UXLINK#DeFi#CommunityDriven
Huge thanks to the #UXLINK global community for your support! 🎉
We’re thrilled to share that the proposal to cross-chain a portion of $UXLINK supply to @BNBCHAIN(for @PancakeSwap) passed with an 86.08% approval vote!
Implementation will kick off soon, and plans for the UXLINK/USDT trading pair + official LP are already in the works.
Stay tuned for updates💪
#BNBChain#PancakeSwap#CommunityDriven
🌟 Exciting News for Our Users! 🌟
We’ve upgraded our system with a token mechanism for seamless usage! 🎉 Here's how it works:
💡 Tokens are deducted based on the number of characters in your question and the bot’s response.
📥 Daily Bonus: Every day, you’ll receive a free token refill to keep chatting without interruptions!
💳 Recharge Options: You can now top up your balance using Telegram Stars and cryptocurrency payments (BTC, ETH, USDT, and more)! 🚀
Enjoy more flexibility and freedom with this new system. Thank you for being part of our community – stay tuned for more updates! 💬
➖➖➖➖🔻
💎@Chatgpt_OfficialNews – Join Us! ⚡️
🤖 BOT: @Chatgpt_OfficialBOT
📱#ChatGPT#AI#OpenAI#TokenSystem#CryptoPayments#BotSupport#CommunityDriven
➖➖➖➖🔺
最近の日本Web3界隈で目立つのが、UXLINKの存在感。🇯🇵🔍
CNPとの提携を皮切りに、日本ローカルの強力なIPとの協業が加速⚡
オンチェーン/オフチェーン両方でのコミュニティ展開に加え、
Web2企業とのクロスパートナー戦略も水面下で進行中🤝
“ユーザー起点のWeb3ソーシャル”という文脈で、
UXLINKは今、日本で一番面白い動きをしているかもしれない。🚀
#UXLINK#Web3JP#CNP#ソーシャルレイヤー#CommunityDriven
One of the most quietly significant players gaining traction in Japan’s Web3 scene 🇯🇵👀#UXLINK
Following its recent collaboration with CNP—a top domestic IP—UXLINK is making inroads across both native Web3 communities and mainstream Web2 circles 🤝
IRL activations, on-chain social dynamics, and a clear long-term strategy signal a serious Japan play 🎯
If you're tracking the rise of social infrastructure in Asia’s Web3 movement, this is one to watch. 📡
#UXLINK#Web3Japan#CommunityLayer#CNP#Web3Social
The next layer of EdgeMarket is live.
We’re introducing community validation for real world events feeding verified truth directly into AI systems.
Every validation strengthens the network.
Every correct signal earns rewards.
⚡ Validate events
🧠. Train AI with real data
💰 Earn $BET
This is how decentralised intelligence is built.
Signal Truth. Earn $BET
Click Here ⬇️ To Start
https://edgemarket.ai/bnb/validate-results
#EdgeMarket#AI#Web3#Crypto#BET
#Airdrop#EarnCrypto#SignalTruth#Validation
#Decentralization#AITraining#Blockchain
#CommunityDriven#OnChain#DePIN