Мы используем 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
😄Feature
➖➖➖➖➖➖
🔘A feature is an element of something interesting or important.
🔜The number of parks is an important feature of the city.
It it also used as a general label for the parts of our faces.
🔘My big nose is my least favourite feature.
🔜When we want to say what is included in something, we use feature. Often it's important that they're there.
🔘This phone features an amazing camera.
🔜Just remember, we use the word feature to talk about interesting or important things.
#feature👨🏫@America
➖➖➖➖➖➖➖➖➖➖➖➖
🆕 Crypto News @Money
😁 Crypto Game @Egame
🇺🇸 US News @America
🇯🇵 Japan News @Japan
🇦🇪 UAE News @Dubai
▶️ Popular Movies @Videos
😜 Best Funny Video @Funnys
😄Feature
➖➖➖➖➖➖
🔘A feature is an element of something interesting or important.
🔜The number of parks is an important feature of the city.
It it also used as a general label for the parts of our faces.
🔘My big nose is my least favourite feature.
🔜When we want to say what is included in something, we use feature. Often it's important that they're there.
🔘This phone features an amazing camera.
🔜Just remember, we use the word feature to talk about interesting or important things.
#feature👨🏫@America
➖➖➖➖➖➖➖➖➖➖➖➖
🆕 Crypto News @Money
😁 Crypto Game @Egame
🇺🇸 US News @America
🇯🇵 Japan News @Japan
🇦🇪 UAE News @Dubai
▶️ Popular Movies @Videos
😜 Best Funny Video @Funnys
Grup ve kanallarda , 'Mesaj Sabitleme' ayrıcalığına sahip olan yöneticiler, 48 saatten daha eski olan iletileri düzenleyebilir:
Android ✅
Android X ✅
iOS ❌
Masaüstü ✅
macOS ✅
Webogram ❌
@Telegram#feature 02.03.2019
The last time we met
The last words you Said
were not just words ,
But bullets in my lungs .
These beautiful clouds and cold Wheather ,
Reminds me of the moments we spent together .
Celebrating first Eid in your absence ,
Makes me guilty for my existence.
Scrolling through my WhatsApp
these days,
feels that life has left me no ways
I always felt happy whenever we met ,
But now ,
Your name forces me to regret ,
Your wait compels me to forget ,
And , even your thoughts pierces my heart.
-CH.Irfan.
#review
#poem
#feature
It was 3am back then
I was laying on the bed
The Mullioned windows were open
The stars above in the night were gleaming
Suddenly onshore breeze had started
I turned off my phone and Started
Thinking of a dazzling Lady
I was devising a Scenario
of me and the graceful Lady
The scenario doesn't exist in real
But,
it gives peace In real
It gives me the Inner endearments
It gives a feeling that is forthcoming
I was fully Shifted to palace with her
That place was completely Magical
We were creating an album of Our life
And in an instant, it started Thundering
I Woke up from my pleasant Dream
The high wind started, The birds were
Moving from one tree to another
I closed my Windows
Gradually Heavy Downpour started
The Dream was left incomplete
But I made a Smile
And Thanked that period
For making me contented in
Today's Selfish World.
#review
#poem
#feature
The last time we met
The last words you Said
were not just words ,
But bullets in my lungs .
These beautiful clouds and cold Wheather ,
Reminds me of the moments we spent together .
Celebrating first Eid in your absence ,
Makes me guilty for my existence.
Scrolling through my WhatsApp
these days,
feels that life has left me no ways
I always felt happy whenever we met ,
But now ,
Your name forces me to regret ,
Your wait compels me to forget ,
And , even your thoughts pierces my heart.
-CH.Irfan.
#review
#poem
#feature
📱Figma AI orqali yangi featureʼni ishga tushirmoqda
Avtomatik o‘lchamni o‘zgartirish, tarjima qilish, variantlar yaratish, shriftlarni o‘zgartirish va bularning barchasi to‘g‘ridan-to‘g‘ri kanvasda bo‘lishi va’dasi berilmoqda.
Yangi featureʼlarni sinash uchun Alfa versiyasiga yozilmoqchiman. Agar qiziqarli narsa bo‘lsa, kanalimda yozaman.
@suxrobblog » #figma#feature#AI
🟢 Paynetdan rasmiy munosabat
...Boshqa ilovalarga oʻtishni hojati yoʻq. Boshqa dasturlarni mazasini qochiramiz! 😎 (deyaptilar, menimcha aka)
@suxrobblog » #paynet#feature
🟢Paynet uchun elektr limitini funksiyasini qo'shish uchun taklif dizayn
— Shunchaki, Paynetdan foydalanganim uchun taklif sifatida chizdim)
P.s. Dizayn paynet dasturining dizayn tizimiga asoslangan holda chizilgan. UI'dagi kamchiliklar ustida detalniy to'xtalmaganman.
#paynet#feature » @suxrobblog