Мы используем 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
#PAWS Solana OG Allocation
If you have an active Solana wallet, check if you’ve received an airdrop or not.
Here's the full list of the 13 projects in the Solana OG Allocation:
Memecoins:
DogWifHat ($WIF) -
Bonk ($BONK)
Pudgy Penguins ($PENGU)
STONKS ($STNK)
GigaChad ($GIGA)
Eliza ($Ai16z)
DeFi:
Magic Eden ($ME)
Phantom Wallet
Jupiter ($JUP)
Raydium ($RAY)
Solana Phone
Jito ($JTO)
Mad Lads by Backpack
Paws Airdrop Checker: https://paws.community/app/solana-og
#PAWS
The airdrop criteria have appeared on the PAWS website !!
➡Open the PAWS app
➡Tap "Check Eligibility"
➡See if you qualify for the airdrop!
Are you Eligible?
🗿 Yes
😢 No
New Task added in @Paws
Get 5000 Paws by completing this task
👉
Big #PAWS Sighted In These Area! 🐶
New task just dropped.
Put 🐾 in your name and stay on marked trails!
👉 PLAY PAWS : CLICK
#Paws Bot is Verified !!
Just a few days ago, the @PAWS bot launched and within less then 3 days it reached a massive milestone of 10 million users! 🤯 And now, it's officially verified by Telegram! 🎉
👉PLAY : @PAWS
💎PAWS ONE LAST RIDE 💎
The final mandatory check is live!
Only those who finish it will stay in.
Go to PAWS Web & check it off.
P.S. Special roles for holding 10+ Vouchers are now available in PAWS Discord!🐾
#PAWS HIGHER 🐶
💎PAWS ONE LAST RIDE 💎
The final mandatory check is live!
Only those who finish it will stay in.
Go to PAWS Web & check it off.
P.S. Special roles for holding 10+ Vouchers are now available in PAWS Discord!🐾
#PAWS HIGHER 🐶
🔤🔤🔤🔤
Do you like detective stories and puzzles?
Let us analyze the picture and say what can you see and predict for the upcoming listing and TGE?
#Paws
#paws
🐾PAWS 18,000,000 million participants
🔥The project is gaining momentum, the next trail according to the hint in the video is the X Empire project, they should still drop coins for it💎
💵Easy money 10-50$, without doing anything
@PAWS
--------------------------------------------------
🤘Blums code
🗣#PAWS – Upcoming Airdrop for Solana DeFi Users
PAWS has announced an upcoming airdrop, rewarding everyone who has used DeFi on Solana!
🔗Post
💡 What to Expect:
🟠 Rewards for Jupiter swaps
🟠 Perks for NFT purchases on Magic Eden
🟠 Bonuses for using Phantom Wallet
⏳ Now is the time to prepare your accounts for the drop!
☝️ Start trading on Bybit
Crypto Drop Club 👉 SUBSCRIBE