Мы используем 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
US: SEC Puts Individuals on Notice: Be Mindful of AI Disclosure Risks
The Securities and Exchange Commission (SEC) is casting a wider net in its efforts to ensure transparency around Artificial Intelligence in the financial sector. While companies have been warned about potential misleading AI disclosures, the SEC is now emphasizing the potential liability of individual actors.
The SEC continues its fight against "AI-washing," where companies inflate or misrepresent their use of AI technology. Director Grewal highlighted recent settlements with investment advisors who made false claims about their AI capabilities, similar to past actions taken in the Environmental, Social, and Governance (ESG) space.
This is a significant shift. Previously, the SEC's focus was on corporate disclosure failures. Now, individuals involved in AI-related disclosures could face penalties if they:
✅ Knowingly or unknowingly misrepresent the role and risks of AI in their company's operations.
✅ Fail to take reasonable steps to ensure accurate disclosures.
If you're involved in AI development or implementation for publicly traded companies:
- be aware of your potential liability regarding accurate disclosures;
- encourage a culture of transparency within your organization regarding AI use;
- seek guidance from legal and compliance professionals to navigate the evolving regulatory landscape.
#AI#SEC#Disclosure#FinancialMarkets
https://x.com/mrmbb333/status/2052868548574560425?s=52
🛸 THE UFO DISCLOSURE ISN’T THE BIGGEST STORY
Something changed.
Not just in Washington…
but in the skies.
For years people were mocked for talking about strange objects, unexplained lights, military encounters, electrical disturbances, and things that didn’t make sense.
Now suddenly…
files are being released.
Pilots are speaking openly.
Major media outlets are covering it nonstop.
But here’s what stands out
Why is all of this happening at the SAME time the world is seeing:
• increased solar activity
• strange sky phenomena
• drone/satellite concerns
• auroras farther south
• extreme weather worldwide
• nonstop reports coming from the skies
Maybe this was never just about UFOs.
Maybe something bigger is changing around us…
and people are finally starting to notice.
👇
What do YOU think is really going on right now?
#MrMBB333#UFO#Disclosure#SpaceWeather#UAP
Project Bluebeam
Final Stage👽
DON'T TAKE THE BAIT
THEY WILL ENGINEER
THE RAPTURE AS AN ALIEN
ABDUCTION
#ufo#uap#aliens#disclosure#trump
https://t.me/TheSecretArchivesQ
⚠️#ALARM⚠️#BreakingNews⚡️#France🇫🇷
#francophonie#Switzerland#Africa
#France#Population in great #Danger⚡️
#Pfizer#CovidPsyOps#Documents#Revealtions#Disclosure#Website#Truth#Veritee#Action#Genocide#Eris
#NATO is #using France 🇫🇷 as a #testingground.
#Hackers have probably hacked the server of NATO's Scientific Collaboration support office in #Paris and published #Secret⚠️#NATO documents.
These documents reveal extremely shocking facts, namely: the low efficacy of the Pfizer vaccine against the new strain of #Omicron, the high risk of embryonic developmental pathologies and cardiovascular diseases following injection of the vaccine, and NATO's implementation of dangerous experiments in the heart of Paris and the surrounding area.
https://x.com/Najadi4Justice/status/1706713373344223516?s=20