Мы используем 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
🌍 Each year, vast dust storms from the Sahara cross the Atlantic, carrying nutrients that fertilize the Amazon rainforest. This airborne soil links continents in a natural, global recycling process. ✨
#cycles⚡#atmosphere⚡#continents⚡#geography⚡#nature⚡#earth
👉subscribe Amazing Geography
👉more Channels
🌍 The global carbon cycle constantly moves carbon between the air, land, water, and living things. This cycle helps regulate Earth’s climate by storing and releasing carbon dioxide. ✨
#carbon⚡#climate⚡#cycles⚡#geography⚡#nature⚡#earth
👉subscribe Amazing Geography🌍
🌍 Some lake water can take hundreds of years to fully circulate from the surface to the deepest layers and back again, creating slow, hidden water cycles that influence local climates and ecosystems. ✨
#hydrology⚡#lakes⚡#cycles⚡#geography⚡#nature⚡#earth
👉subscribe Amazing Geography
👉more Channels
🌍 Earth’s tides are driven mostly by the Moon’s gravity, causing oceans to rise and fall all over the globe. These constant movements help mix ocean waters and shape coastal ecosystems. ✨
#tides⚡#ocean⚡#cycles⚡#geography⚡#nature⚡#earth
👉subscribe Amazing Geography🌍
🌍 Earth’s magnetic field flips direction every few hundred thousand years, a process called geomagnetic reversal. These flips are recorded in volcanic rocks and help scientists trace ancient geologic changes. ✨
#geomagnetism⚡#volcanism⚡#cycles⚡#geography⚡#nature⚡#earth
👉subscribe Amazing Geography
👉more Channels
https://x.com/priceactiongann/status/1819774789399224477
#nifty#nifty50#stocks
Price and Time Relation:
strong connection and cycle of 144 and 108 or 1440 and 1080
Nifty low of march 24 , 2020 = 7511 price
Nifty all time high august 1 2024=25078 price
price moved from low to high or total range from low to high is 17567
#trading
Price 17567/144= 122
#priceaction
122x144=17658
Time taken to reach is 1081 bars and 1591 days
1080 trading days or bars to reach from low to high
1080/144=7.5
1080/1440=.75
17657 is price moved and 1081 is time taken
2.177860006167129
17657/1081 =16.33395004625347(163)
16.33395004625347/7.5 =2.177860006167129(216 or 217)
2.177860006167129x5 =10.88930003083565(108 or 1080)
1080 or 1081 days to reach from low to high!
#Stocks
90 years cycle the great cycle is 90x12 =1080 months
18x60(great cycle) = 1080
circle 360 =3 (holytrinity)x360 =1080
3x3x3= 27
27x4 =108
108/3=36
666=6x6x6
also 108 is 18 degree cancer
108 is half of 216 (144 + 72) and its 1/4 of 432
#numerology#financialastrology#astrology
1080/666=1.62
If this post gets 108 likes and 108 comments i will post more calculations
1080/666=1.62 #time#price
one important cycle about above number and how it connects to nifty high
it will deal with other number like 555,666,777 etc.
more u will get in that too once reaches 108 likes and 108 comments here.
#stockmarket#stockmarketcrash#economy#timecycle#pricecycle#gann#cycles
https://x.com/priceactiongann/status/1819774789399224477