Мы используем 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
Albinism: a genetic condition that reduces or stops the body's melanin production, the pigment that gives color to skin, hair, & eyes. Albino people often have very light skin, hair, and eye color. It can also affect vision, causing problems like poor sight and light sensitivity.
Most people with albinism have blue, hazel, green, or light brown eyes, depending on the amount of melanin pigmentation. Some may appear to have red or violet eyes since the lack of melanin allows underlying blood vessels to show.
Their skin is more sensitive to the sun, they burn easily and have a higher risk of skin damage. Albinism is present from birth and is inherited through genes. Most have normal health and lifespan with proper care. But many face social challenges like persecution, stigma, and discrimination in different parts of the world.
🧬☀️👁️
[Read more1]
[Read more2]
[Read more3]
[Read more4]
@googlefactss
#Albinism#Genetics#Awareness#Inclusion
If you have ideas or feedback contact us:
@Googlefactss_Feedback_bot
Uzbekistan has made a historic leap in the Gender Equality and Governance Index, rising 51 positions, from 103rd to 52nd place!
This success shows real progress in women’s education, economic empowerment, and the growth of innovative IT initiatives.
We’re committed to increasing women’s participation in the IT sector. Our educational programs aim to ensure that every woman can thrive, benefiting from the accessible public services created by the state.
Uzbekistan is a country full of talented youth, and our ambitious, creative girls are at the forefront. Empowering young women in tech is a source of national pride.
By breaking down barriers, we’re opening doors for women to lead in technology. With talent, creativity, and determination, there are no limits to what can be achieved!
This achievement reflects the power of teamwork. Thanks to international organizations, private companies, and local initiatives, Uzbekistan is building an inclusive IT ecosystem driven by diversity.
Supporting women in tech is an investment in the future—one that benefits everyone.
While progress has been made, we know there’s more to do. Women remain underrepresented, especially in rural areas. We’re working to boost computer literacy and provide technology access for rural women.
Our Vision: Every woman should have the opportunity to reach her potential, be well-educated, and equipped to earn a living—maybe even lead the next tech unicorns!
By 2030, under the Digital Uzbekistan Strategy, we aim for 300,000 IT specialists, with women making up at least half of them.
Together, we can build an inclusive, innovative future, where every girl and woman can shape the digital world.
Join us in this mission! We welcome international organizations, private companies, and individuals to collaborate in empowering girls in STEM and STEAM fields.
Let’s continue working to ensure equality and diversity in every corner of Uzbekistan!
#Uzbekistan#WomenInTech#Inclusion#STEM#Innovation#Empowerment
Canada's accessible bank notes feature distinct colors for easy identification: $5 is blue, $10 is purple (and vertical!), $20 is green, $50 is red, and $100 is brown—each with large numbers and tactile dots for the blind and partially sighted. 🇨🇦💵👁️🗨
[Source]
@googlefactss
#Accessibility#BankNotes#Inclusion#Canada#Currency#VisionLoss
🤔FOOD FOR THOUGHT💭
📌 I would like to expose a situation. If your children don't learn with children with special needs at school and have never been taught that not everyone is equal, maybe you should spend 10 minutes today to explain it to them,
📌Because although they don't currently live with these children at school, they will find them in their lives for sure.
📌In light of recent events regarding the exclusion of a child with autism from attending a school trip and a child with Down Syndrome being expelled from dance class because she couldn't keep up with it, I feel the need to share this.
📌There are boys and girls that no one invites to birthday parties. There are special children who want to be part of a team but are not selected because it's more important to win than to include these children.
📌 Kids with special needs aren't weird , they just want what everyone wants: to be accepted!
📌Can I ask a question? Is there anyone willing share this article like I did, for all the special children out there?
📌Please teach your children to be kind to these beautiful children!
📌Everyone needs love and kindness
#inclusion#syndromedown#autism#beingdifferentlynormal#respect#love#empathy@HeathSafetyTps
Grayscale Launches Dogecoin Trust
🚀 Grayscale Investments has launched the Grayscale Dogecoin Trust, redefining DOGE from a meme to an investment asset. The trust aims to offer accredited investors direct exposure to DOGE, highlighting its accessibility, low cost, and quick transactions. Grayscale's initiative underscores DOGE's role in promoting financial accessibility, as noted by Rayhaneh Sharif-Askary. While regulatory approval for secondary market trading is pending, the outlook for crypto ETFs remains positive following recent approvals. The DOGE Trust could potentially convert into an ETF in the future, aligning with the SEC's evolving view on cryptocurrencies. Notably, Bitwise Investment Advisers has proposed a Dogecoin ETF. 📈
#Grayscale#Dogecoin#Crypto#ETF#Finance#Investment#SEC#Regulation#AssetManagement#Bitwise#Inclusion#FinancialAccessibility#Meme#Blockchain#Trends#Markets#Innovation#DigitalAssets#SpotETFs#InvestmentTrusts