Мы используем 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
⚽️FIFA
Fraude mundial en el examen de agentes FIFA#FIFA
La FIFA está al tanto de un fraude producido en el examen de acceso a agente de jugadores producido en Madrid hace unos días y que se une a otros de federaciones distintas de todo el mundo. Según adelantó Relevo y ha podido confirmar ese diario, al menos 15 postulantes al carnet oficial de representación de futbolistas homologado por FIFA habrían cometido una trampa informática el pasado 20 de noviembre a la hora de evaluarse telemáticamente.
El fraude consiste en ceder el control de sus ordenadores de forma remota a otras personas que son los que en realidad contestan a las preguntas. Los cambios masivos de IP a la hora del examen, celebrado en el hotel Hilton Aeropuerto, son los que hicieron saltar las alarmas a la FIFA, que estaba atenta y a la expectativa de lo que pudiera suceder.
Ya antes del examen gestionado por la RFEF se habían producido denuncias en otros países por este mismo sistema de fraude, lo que había hecho levantar las sospechas por lo que pudiera ocurrir en España. Los acusados de falsificar su examen habrían pagado una cantidad de dinero (se habla de 2.000 euros) a aquellos que respondieron las preguntas en algún otro lugar.
La alteración de las IPs supone el suspenso inmediato en el examen para todos ellos. La FIFA, además, tiene el asunto en manos de varios bufetes de abogados que están analizando las medidas a tomar por las consecuencias que esto pueda acarrear. Desde hace unos años, el carnet FIFA de agente es obligatorio para poder participar en operaciones de intermediación de futbolistas, lo que ha generado muchas polémicas y, en este caso, tretas de todo tipo para poder aprobarlo.
https://as.com/futbol/internacional/fraude-mundial-en-el-examen-de-agentes-fifa-n/
🏆@Info288_deportes
⚽️FIFA
El TJUE declara ilegales normas de la FIFA sobre fichajes por restringir la libre competencia y circulación#FIFA
El Tribunal de Justicia de la Unión Europea (TJUE) ha declarado este viernes ilegales las normas de la FIFA sobre relaciones contractuales entre jugadores y clubes al afectar a la transferencia de futbolistas, esto es a la competencia y libre circulación de personas.
Esta sentencia es a raíz del caso de Lass Diarra, exjugador del Real Madrid y que como futbolista del Lokomotiv de Moscú vio resuelto su contrato después de que el equipo ruso alegara un supuesto incumplimiento y pidiera una indemnización que tendrían que asumir el jugador y como responsable solidario su nuevo club, lo que según el futbolista francés frustró un posible contrato con el Sporting de Charleroi de Bélgica.
Ahora, la Justicia europea declara que "estas normas en su conjunto son contrarias al Derecho de la Unión". Primero porque las normas pueden "obstaculizar la libre circulación de los futbolistas profesionales" que desean jugar en otro club dentro de la UE.
Las reglas de la FIFA entrañan "riesgos jurídicos importantes", así como "riesgos económicos imprevisibles y potencialmente muy elevados", además de "riesgos deportivos serios" que a la postre "pueden obstaculizar la transferencia internacional de esos jugadores".
A juicio del TJUE, aunque se pueden aplicar restricciones al libre movimiento para garantizar la regularidad de las competiciones de fútbol entre clubes, la norma que afecta a Lass Diarra va "más allá de lo necesario" y por tanto no lo ve justificado.
Respecto al impacto de las normas de la FIFA en la competencia entre equipos, el tribunal europeo señala que las medidas buscan limitar la competencia transfronteriza mediante fichajes unilaterales de jugadores con contrato o de aquellos que vieron finalizado su contrato sin causa justa, pero considera que estas normas "no parecen indispensables o necesarias".
La sentencia sigue el criterio del Abogado General que el pasado abril ya señaló en su dictamen que las normas de la FIFA sobre relaciones contractuales entre jugadores y clubes podían ser contrarias al Derecho europeo. El jugador francés demandó a la FIFA y la Federación Belga de Fútbol solicitando el pago de seis millones de euros en concepto de daños y perjuicios y de lucro cesante.
https://www.europapress.es/deportes/futbol-00162/noticia-tjue-declara-ilegales-normas-fifa-fichajes-restringir-libre-competencia-circulacion-20241004115108.html
🏆@Info288_deportes
⚽️ Արմեն Մելիքբեկյանն ու Լևան Կոբիաշվիլին հանդիպել են ՖԻՖԱ-ի նախագահ Ջաննի Ինֆանտինոյին։
ՀՀ և Վրաստանի ֆուտբոլի ֆեդերացիաների նախագահները նշել են, որ մեծագույն պատիվ և պատասխանատվություն է ստանձնել 2029թ․ Աշխարհի երիտասարդական առաջնության հյուրընկալումը:
#FIFA#Հայաստան
Donald Trump at the presentation of the FIFA Peace Prize, which was created specifically to present it to the American president, who never received the Nobel Prize.
#Trump#FIFA
👂More on Trump's Ear
Cristiano Ronaldo met with Donald Trump at the White House and had dinner with tech billionaires ⚽️🏛
Yesterday, US President Donald Trump hosted Portuguese football star Cristiano Ronaldo at the White House — and today the first footage from this visit appeared in the media 📸🇺🇸.
The purpose of the trip was reportedly Trump's meeting with Saudi Crown Prince Mohammed bin Salman 🤝👑. The fact that a football player playing in the country at the Al-Nasr club would be part of the delegation was leaked to the press just a few hours before the visit 🗞⏳.
The reception was also attended by important American politicians such as Vice President J. D. Vance, as well as business leaders and other influential personalities 👔🌍. Among them are Elon Musk, Jeff Bezos, Tim Cook, FIFA President Gianni Infantino, as well as Chairman of the Board of Advisors to the US President for Science and Technology, David Sachs 💼🚀.
Ronaldo thanked Trump and First Lady Melania for the warm welcome 🙏🤝.
#Trump#FIFA
👂More on Trump's Ear
Cristiano Ronaldo 🎯 meets with Donald Trump 🇺🇸 at the White House 🏃🤝🦳
Soccer player Cristiano Ronaldo ⚽️ will arrive at the White House today with Saudi Crown Prince Mohammed bin Salman 👑. Sources told The Athletic newspaper that the meeting will take place in the near future.
According to the American media, it will be about international relations 🌍✨ and new investments 💰 between the United States and Saudi Arabia. This is Bin Salman's first visit to the United States in seven years.
Ronaldo has been playing in Saudi Arabia since January 2023, playing for the Al-Nasr club, owned by a state foundation. In recent months, the footballer has often performed informal diplomatic functions 🗣📋.
Ronaldo himself had previously said that he would like to meet with Trump to discuss "world peace." 😇👌
"He's one of those people who can help change the world," the footballer said in one of his interviews.
Ronaldo is preparing to play for the Portuguese national team at the 2026 World Cup 🌟, which will be held in the United States.
#Trump#FIFA
👂More on Trump's Ear
Trump asked if he could keep the FIFA World Cup cup. This happened when the US president hosted FIFA President Gianni Infantino.
#Trump#FIFA
👂More on Trump's Ear ⚠️
⚽️ FIFA is launching its own avalanche-based blockchain for digital collections, fan platform games, and. The new EVM is a large-scale project for FIFA, which is full-scale.
Constantly request the #FOOTBALL token — it is the main one for the Russian audience, rejoices and participates in the #FIFA Web3 project.
🇹🇯⚽️Испанский тренер Клаудио Гарсия Лара будет работать в Таджикистане по программе «Тренер талантов» (FIFA Talent Coach) в рамках совместного проекта Федерации футбола Таджикистана (ФФТ) и ФИФА «FIFA Talent Development Scheme».
#Таджикистан#FIFA
Команда @asia_korotko
🇰🇬ФИФА ЖАҢЫЛАНГАН РЕЙТИНГИ: КЫРГЫЗСТАН 132 - ОРУНДА
📉 Кыргыз Республикасынын Кыз-келиндер курама командасы дүйнөлүк рейтингде 132 -орунга чыгып (193 орундун ичинен) эки позицияга төмөндөдү.
📉 АФК рейтингинде команда 26-сапка (40 орундун ичинен) төмөндөдү.
#FIFA#kyzdarkurama#kyrgyzkurama