Мы используем 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
#RVN/USDT analysis :
#RVN is in a downtrend, making new lows and trading below the 200 EMA. The price is currently retesting a previously respected support zone. It is expected to decline from this level and continue the downtrend, with previous lows will be tested again.
TF : 4h
Entry : $0.01770
Target : $0.01596
SL : $0.01893
#RVN/USDT analysis :
#RVN has broken out of the previous swing high resistance zone and the 200 EMA. It is currently consolidating above these levels. The price is anticipated to sustain its bullish momentum and potentially reach new highs.
TF : 2H
Entry : $0.01745
Target : $0.01942
SL : $0.01618
#RVN/USDT analysis -
#RVN has broken down and retested the resistance zone. It's now set to keep going down and try new lows. The previous support is expected to be tested.
TF : 2H
Entry : $0.01770
Target : $0.01630
SL : $0.01845
#RVN/USDT analysis -
#RVN is in a downtrend, hitting new lows while trading below the 200 EMA. The price is currently rejecting from the resistance zone and is expected to decline from there, continuing its bearish momentum. Wait for a pullback near the resistance zone for a short entry. Aim for the previous swing low as your target level.
TF : 1H
Entry : $0.0206
Target : $0.0187
SL : $0.0220
#RVN up 4,030% - Absolutely incredible🔥
💰A nice
4️⃣
0️⃣
🔠 return from this single Signal⭐
While others take massive losses trading spot, only making money when prices go up - we win big with futures profiting even when market goes down. That's the difference between smart investing and bad decisions 🏝
If you want the best, this is your chance
🔥BULL MARKET SALE IS LIVE🔥
The market is heating up, and we are at the peak of the year. It looks like more big days are ahead. Let's keep riding this wave, it's going to be absolutely insane!💯
DM me now to start!👇
http://t.me/Kevindexter
#RVN rejected from the Trendline on Weekly time frame,in the case of correction we can buy it again at Weekly Demand zone,send it💫
❄️@signals_bitcoin_crypto❄️
❄️@Shadow_support0o❄️