Мы используем 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
🧭January 29 marks theDiscoverers’ Day in Russia
🧊 On this day in 1820, Russian naval officers Faddey Bellingshausen and Mikhail Lazarev discovered #Antarctica – the sixth continent.
The expedition lasted 751 days. Sailing aboard the two sloops Vostok and Mirny, the 102-strong crew were the first to map the boundaries of the Antarctic continent.
The voyage was extremely arduous and dangerous. Small wooden sailing vessels had to navigate close to ice and icebergs, often in dense fog. Heading south, on January 28, the Russian navigators came within close proximity of the icy shores of a previously unknown land.
📝Mikhail Lazarev later wrote about that historic moment:
“We reached latitude 69°23 S, where we met main ice of extraordinary height… and looking out from the crosstrees, it stretched just as far as our gaze could reach… At last, there lay before us that southern main, so long sought after, whose existence scholars in their studies had deemed necessary for the balance of the globe.”
Braving fierce ocean swells and polar ice, the expedition successfully circumnavigated the continent. This remarkable voyage brought glory to Russia and turned St Petersburg into a leading centre of global geography. The results of the expedition, which led to the discovery of Antarctica and twenty-nine new islands, represent an Russia's outstanding contribution to the history of geographical exploration.
Later, shortly after the end of the Great Patriotic War, the Soviet Union resumed its exploration of the continent. In 1946, the Slava whaling flotilla, carrying a scientific team, sailed to Antarctica. They reached the point where Bellingshausen and Lazarev had sighted the “main ice” and verified the accuracy of their original accounts.
On February 13, 1956, the first Soviet Antarctic research station, the Mirny Observatory, was officially opened. This was later followed by a network of year-round Russian stations.
🇷🇺 Today, Russia continues its research in Antarctica. In late 2024, a new wintering complex entered service at the inland Vostok Station. In 2025, the research vessel Akademik Tryoshnikov completed the International Antarctic Coastal Circumnavigation Expedition. The 71st Russian Antarctic Expedition is currently underway.
Antarctica🇦🇶
An eco-camp inspired by the space exploration era, providing exclusive access to the most remote locations on the continent.
Equipped with six heated pod rooms featuring floor-to-ceiling panoramic windows.
#Antarctica
@voyage
No man’s land
#video#Antarctica
It’s open to everybody and no country owns it. People and wildlife coexist here peacefully. What’s this wonderful place? It’s Antarctica, the world’s coldest and most pristine continent!
On this day, exactly 62 years ago, a conference in Washington DC paved the way for the Antarctic Treaty, which proclaims that the world's southernmost continent should be free of weapons, borders, and exploitation. Only science and collaboration are welcome here.
To honour that date, here are some interesting facts.
❄️ You can’t take anything out of the continent, including stones, feathers, or anything manmade.
❄️ Antarctica has the lowest recorded temperature on earth, -89.2 degrees Celsius.
❄️ America’s McMurdo station is the largest research station here, with over 1,000 scientists working throughout the year.
Follow: https://t.me/rtdocumentary
Antarctica 88
🆕Обновление
Вы попадётев Антарктиду, где сможете окунуться в жуткую научно-фантастическую историю. Готовы ли вы к встрече с ужасными существами, которых скрывает Антарктида?
⚙️Полная купленная Pro версия (299₽). Мод меню: разблокирован весь платный контент и другое. #Хорроры
#Хорроры@pm_plus
#Antarctica@pm_plus
📱Play Market +
⚡️ НАШ ЧАТ
🌎 Antarctic icefish stand out for surviving in freezing waters thanks to "antifreeze proteins" in their blood. These proteins prevent ice crystals from forming inside their bodies, letting them live where most fish would freeze solid. Some species have completely lost red blood cells and hemoglobin. ✨
#adaptation⚡#animals⚡#antarctica
👉subscribe Interesting Planet
👉more Channels
🌎 The deepest point on land is the Bentley Subglacial Trench in Antarctica, buried beneath almost 3 kilometers of ice. This hidden valley lies 2,555 meters below sea level, far deeper than Death Valley, and remains inaccessible except through advanced radar technology. ✨
#Antarctica⚡#geology⚡#extremes
👉subscribe Interesting Planet
🌍 Mount Erebus in Antarctica is one of the world’s southernmost active volcanoes. Its lava lake stays liquid year-round, despite harsh temperatures that often plunge far below freezing. ✨
#volcanoes⚡#Antarctica⚡#mountains⚡#geography⚡#nature⚡#earth
👉subscribe Amazing Geography🌍
🌍 Antarctica is the only continent entirely surrounded by ocean and is nearly twice the size of Australia. Its thick ice reflects sunlight, helping regulate Earth’s overall temperature. ✨
#continents⚡#oceans⚡#Antarctica⚡#geography⚡#nature⚡#earth
👉subscribe Amazing Geography
👉more Channels
🌎 Beneath the Ross Ice Shelf in Antarctica, researchers discovered a thriving community of tiny amphipod crustaceans living over 500 meters below the ice. Scientists accessed this hidden ecosystem in 2015 by drilling through the thick ice, revealing life where sunlight never reaches. This shelf covers an area roughly the size of France. ✨
#ocean⚡#Antarctica⚡#crustaceans
👉subscribe Interesting Planet
👉more Channels
🌍 Antarctica is home to “blue ice” areas where strong winds strip away snow and expose centuries-old glacier ice, creating shimmering fields that reflect nearly as much sunlight as fresh snow. ✨
#glaciers⚡#Antarctica⚡#polar⚡#geography⚡#nature⚡#earth
👉subscribe Amazing Geography
👉more Channels