Мы используем 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
🪙Yescoin has conducted a snapshot.
According to the progress bar, at least two more are expected. In the announcement, it is mentioned that rewards will be given for activity (e.g., daily logins) and community growth, such as inviting friends.
👉 Access Yescoin via this link
✍️Mr. X ....... @Yescoin_bot/ 👈
➖➖➖➖➖➖➖➖➖➖
#Yescoin
At Yescoin, we’re changing the game. We’re flipping the script and giving EVERYTHING to you!
🔥 Transform Your Creativity into Earnings with the Yescoin Accelerator Program!
🤔 How Does It Work?
Create content about Yescoin, and we’ll sponsor it for FREE, giving you exposure to millions of users. Grow your audience and monetize on platforms like YouTube.
✅Joining is simple:
1. Create Content About Yescoin
• Focus on videos 5+ minutes for better monetization.
• Use #Yescoin and include your referral link to earn through our affiliate program.
2. Share Your Video
• Post your video link in the Yescoin Accelerator community to network with creators and get tutor support.
3. Get Featured and Earn
• We’ll add your video to our mini-app, promote it for FREE, and help you start earning!
Your content, our sponsorship,success starts here!
We’re excited to announce the launch of our Content Contest!
Here’s how you can participate:
1. Create a video about Yescoin.
2. Use the hashtag #Yescoin.
3. Post it on your favorite social media platform: TikTok, YouTube, Instagram, or anywhere else.
4. Quantity over Quality: The more content you create, the higher your chances of winning
💰PRIZES
The rewards are split into two categories:
1. Long-Form Content Contest:
• $5,000 prize pool
• 100 winners will each receive $50.
• Includes tutorials, informative videos, and other long-form content.
2. Short-Form Content Contest:
• $5,000 prize pool
• 100 winners will each receive $50.
• Includes memes, Twitter posts, Reels, TikToks, and YouTube Shorts.
The Yescoin community will begin selecting the winners on February 15th.
1️⃣Catizen
2️⃣MMproBump
3️⃣W-Coin
4️⃣IcebergAppBot
5️⃣Yescoin_bot
6️⃣Pocket Rocket
Friends, what are your results? Send your screenshots here. 👈
#Catizen#Yescoin
🤩 Yescoin Mining Free Airdrop & Users who visit #Yescoin and complete Bitget Wallet-related tasks will receive 3 raffle entries that will be shared in a million dollar prize pool.
👉 Join Airdrop :- https://t.me/realyescoinbot/something?startapp=t_1048396301_1048396301036
👍 Start the Bot to Claim Yescoin
👍 Complete Task and Collect Points
👍 Click Boost to Increase your level & Buy tap bot 👍 Done
👉 How to participate bitget event :-
1️⃣Download Bitget wallet :- bitgetwallet.onelink.me/6Vx1/kboazuo1
2️⃣Visit Home page for the #TON Ecosystem Carnival event
3️⃣Complete All Yescoin activity tasks
4️⃣Don't miss out! Explore the TON ecosystem and earn amazing rewards!
#Note :- Join fast before August 18th & It's 💯 Verified project don't skip 🔥
🤩🌐🤑Yescoin has claimed the top spot in the TON Tournament's weekly battle rankings, powered by Bybit!
💫The competition remains fierce, with Yescoin leading the way in this exciting tournament. Stay tuned for more updates and developments.
👉All Play, All Gain, All on TON! The momentum continues, showcasing the power of YES!
🔔Subscribe📈ByBit
➡️Yescoin
➖➖➖➖➖➖➖➖➖➖➖
#yescoin#bybit#taptap#crypto
@Yescoin_Fam@cex_io, whom we have been waiting for for a long time, announced that they will take 📷 snapshots this weekend. The last days are now. 🔥🔥
I hope there will be good exchanges and listings. Both have very solid infrastructures. Let's see if those who work hard will win.
👉Yescoin https://t.me/CentralChanel/15157
👉Cexio https://t.me/CentralChanel/13801
#Telegram#Airdrop#Yescoin#Cexio
🎉 $10,000 Giveaway Announcement! 🎉
To celebrate reaching 5,5 million users, we're launching the biggest giveaway ever in the ton space!
For your chance to be one of 100 lucky winners, check out all the details in the link below👇
https:://t.me/realyescoinbot
#crypto#game#giveaway#usdt#yescoin
Друзья, обновляю список таполок, которые у меня есть!
Про то как запустить приложение, если у вас не работает страница бота написала тут - https://t.me/redcoinsclub/236
ТОП Проекты
1. 🏠Cityholder🆕
2. 🐹Hamster
3. 🤑Blum (~400 invites)
4. 🤩YesCoin🆕
5. 🤝 PixelTap
6. 🪙ThePixels
7. 🪙Cexio
#yescoin#blum#notcoin#cexio#pixel#cityholder