Мы используем 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
🆕По новостям🆕:
-⛏️Miner*, поменяли работу автомайнера, теперь он работает постоянно, если вы его купили. (То есть, если энергия хоть чуток восстановилась, автомайнер сам включает майнер)
-
🏳️Not Pixel, показывает признаки жизни😅 Также, уже очень много слухов, что будут листинги на тир-1 биржах. (Я свои токены до сих пор не продал)
-🐾PAWS, upd: задания убрали. новые последние задания с DONOT😂. (На самом деле, по моей информации, заданий будет еще много в феврале...)
-🪙DROPEE, новая спец. карточка с намёков на скорый TGE. (Я уже писал, что этот проект - темная лошадка, которого многие недооценивают)
-💫Tiny Verse, показали все ачивки (см. скрины)
-🗑BUMS, китайская лотерея:
Вышла Китайская новогодняя лотерея.
Каждые 24 часа в течении следующих 10-ти дней будет появляться новый бокс:
- Сумма призов будет составлять 1035 TON ежедневно.
- На каждый день доступно 14225 билетов, вытащить с билета можно от 0.01 до 200 TON.
- В каждом боксе доступны уникальные скины, лимитированные ачивки дракона, платиновый паспорт на 1/+1 месяц и +0.5% к Airdrop.
- Также с боксов выпадают китайские фонарики, соберите все 100, чтобы получить эксклюзивную награду!
Бонусом, топ-100 держателей билетов получат легендарный скин, дающий +200% к доходу в час!
❗️ТОП-1 участник по количеству билетов получит свой собственный скин, который будет отрисован специально для победителя.
Скин будет содержать его никнейм, а также иметь уникальные характеристики.
Это финальная серия лотерей, с щедрыми и уникальными призами, не упусти свой шанс на получение лимитированных наград 🗑
-🐇#fomo_hash, добавили лим. коллекцию из 800 Matrix Rabbit. Данная NFT навсегда дает +30% к энергии, поставленной в режим energy swarm (то есть, если предоставили в пул 100к энергии, бонусом получите +30к)
-🪙Memhash, дали всем бесплатный доступ к майнингу. Важно: обязательно выполняйте ежедневное задание по активности. Делая это, вы подтверждаете свое право на Airdrop. Это показывает ваш интерес и вовлеченность в #Memhash
-Telegram, уже появились первые NFT-подарки, пока только в тестовом режиме. Это значит, что скоро можно будет и стикеры превратить в nft и продать)
p.s. Всем доброй ночи🫰 А я пошел запускать майнеры)
🛒Buy - Sell - Trade - Mine:
📈ByBit📈OKX⭐️STARS🚀Miners
#Memhash#️⃣
🖥Overnight Mining Activated
As usual, I’ve set up token mining to run overnight.
⭐️What Makes This Project Stand Out?
No guessing games—whatever you mine is exactly what you’ll keep when the tokens are listed.
⚡️Optimize Your Mining Speed
Your processor's power determines how fast you mine. For the best results, run it on a computer.
⏱Limited Time Opportunity
Only 19% of tokens have been mined so far. Don’t miss your chance to claim your share!
📖Learn More About the Project
Find all the details about this innovative platform here.
➡️Join the Project Now
@memhash_bot/start👈
Alessia Baumgartner, VP of Ecosystems at DWF Labs, shared her insights yesterday on TON’s growth, Telegram mini-apps, and Web3 adoption🔥
She spoke during a livestream hosted by #Memhash alongside Kirill Malev, Nick Borisov, and Nikita Anufriev, host of Headliners Podcast. Key takeaways below 👇
1️⃣ Alessia highlighted the remarkable expansion of TON, emphasising the importance of the USDT integration on TON, which attracted new users and investors into TON.
2️⃣ She noted the importance of resilience and adaptability when the crypto market experiences instability. She advised founders to focus on adding value and staying attuned to community needs to navigate uncertainty.
3️⃣ The speakers discussed the future of Web3, and how gamification and mini-apps will drive the next wave of Web3 adoption.
4️⃣ They shared that #Memhash is a trailblazer in the Telegram mini-app space, with its gamified mechanics and loyal community.
Catch the full recap here.
🏴☠#MemHash listing has is done !
It's time to sum up the results of #MemHash.
📝 Share in the comments how much you got ?
❤️ - > 100 $
👍 - 50-100 $
🫡 - < 10$
🏴☠#MemHash is already on BitGet
💱
Listing starts tomorrow 📅 February 28 at 9:00 UTC
Those who played, check your wallets
Did you receive it❓
🔥 — yes
🫡 — not yet
🗿 — frozen
#Memhash Today will be listed on exchanges
#️⃣ Memhash is one of those projects that the Founder of Telegram has written about more than once.
❤️ Memhash set new trends (including writing its name with a hashtag), spawned 40 clones and attracted huge interest from the TON community.
🚀 As an early miner, I’m not planning to sell, so don’t worry. I’ll be buying more tokens after the listing and holding onto them.
You haven’t told anyone about #Memhash, right?🪙
So, how’s the meme mining going in #Memhash?🪙
While we’re waiting for the +888 NFT number market launch this coming Monday in @Major, it's token gaining utility in other cool projects as well. For instance, in a project that's still under wraps, two interesting tasks have been introduced#️⃣
This is definitely not the last thing we’re doing for the holders of this token. Major still has some big surprises in store for you 😊
📟 MEMHASH!
🏴☠️ One week left!
☄️ There is very little time left to get the last tokens - only ~1 week.
Some numbers and statistics on the mining phase of #Memhash:
⭐️Today they have achieved two big targets: 1,000,000 subscribers on the TG channel and 500,000 subscribers.
➡️Every day in #Memhash:
• 10,000 blocks are being mined.
• Users receive more than 15 million tokens.
🔖Invite all your friends to mine the remaining tokens! This is the last chance for your friends to participate in #Memhash mining! Access is free!
🎮START GAME
🐱🐱🐱🐱🐱🐱🐱🐱
👉🏻SUBSCRIBE!
#️⃣@memhash👈
🚀
➕ We have added a new mode, its performance in calculating hashes can be several times higher than on a standard turbo mode.
#️⃣ The mode can be activated for free, but to enable it you need to have a maximum energy reserve of at least 200,000.
t.me/memhash_bot/start👈
#Memhash#Airdrop
💵Friends, a new verifiedMemhash project has appeared from the creator of Roxman, known for apps like Major and Memhash, and a friend of Pavel Durov.
Pavel Durov wrote a personal post about this project on his channel:
Post by Durov🥷🥷
The mining of the token is carried out using the same algorithm as Bitcoin. Based on the computing power of your device, whether it’s a phone or a computer, hash calculations will be performed automatically.
The mining speed depends on your device. Connect powerful computers or Mac laptops. The difficulty will increase every day, so hurry up while there’s still a chance! This project might reach Bitcoin’s level, and the token’s price could rise significantly in a few years.
t.me/memhash_bot/start👈
t.me/memhash_bot/start👈
t.me/memhash_bot/start👈
#memhash#airdrop