Мы используем 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
💬Lors d'une réception aux États-Unis, #Charles III a plaisanté en disant que l'armée britannique avait incendié la Maison-Blanche il y a 200 ans dans le cadre d'une « petite tentative d'embellissement ».
Le roi de Grande-Bretagne a fait remarquer qu'il n'avait pu s'empêcher de constater que l'aile est de la Maison-Blanche avait été entièrement démolie pour y construire une salle de bal.
RT en français • Osez questionner !
💬Lors d'une réception aux États-Unis, #Charles III a plaisanté en disant que l'armée britannique avait incendié la Maison-Blanche il y a 200 ans dans le cadre d'une « petite tentative d'embellissement ».
Le roi de Grande-Bretagne a fait remarquer qu'il n'avait pu s'empêcher de constater que l'aile est de la Maison-Blanche avait été entièrement démolie pour y construire une salle de bal.
RT en français • Osez questionner !
#Charles Edwards (author of many indicators):
If the yield of bitcoin after carving is the same as in 2020, then next year we will see bitcoin at $280 thousand.
Royal visit👑: Charles came to Donald Trump and spoke to the US Congress🇺🇸🇬🇧
The speech of King Charles III before the US Congress was expected with great excitement. Before him, only one British monarch spoke to the most powerful parliament in the world - in 1991, it was his own mother, Queen Elizabeth II. Relations between the two countries are currently tense: the UK refuses to support the US in the war against Iran. However, Charles remained a gentleman with respect and tact: no harsh attacks in front of Congress! 🤝
Charles received four minutes of standing ovation when he entered Congress in a pinstriped suit. "Since ancient times," says the king, "our destinies have been intertwined with each other." He stressed the connection between the two countries during the period of political turbulence. About the assassination attempt on Trump, he said: "Let me state with unwavering determination that such acts of violence will never lead to success." 💪
The British King also spoke in support of Ukraine: the same unwavering determination that was seen after the September 11, 2001 attacks on the United States is also needed to protect Ukraine "and its extremely courageous people." The speech ended with a touching statement: "God bless the United States, and God bless the United Kingdom." 🙏
Before this historic speech, US President Donald Trump did everything he could to create a positive atmosphere. He ordered tea and sandwiches at the White House, laughed and joked with Charles, touched his knee in a friendly way, and suddenly surprised him with a declaration of love: "My mother was in love with Charles!" ❤️
Trump explained: "Every time the Queen participated in a ceremony or something like that, my mother would stick to the TV and say, 'Look, Donald, look how beautiful it is.' She really loved that family. But I also remember very well how she would say, 'Charles, look, little Charles, he's so cute!' My mother was in love with Charles. Can you believe that? It's incredible! I wonder what she would think today." 👑📺
The US President touched on his mother's Scottish roots: "My wonderful mother, Mary MacLeod, was born in Stornoway, Scotland, in the Hebrides. That's what they call the real Scotland. She came to America at the age of 19 and met my incredible father." 🏴
At the morning reception, Trump reportedly joked about his marriage to Melania. He then embraced the First Lady and lightly touched her buttocks... 🍑
Queen Camilla and the First Lady also seemed to get along well. They both wore light, subdued colors. Melania is wearing a light yellow suit by designer Adam Lippes, and Manolo Blahnik's high-heeled python-patterned shoes (approximately 1,000 euros). Camilla is wearing a white chiffon dress with a brocade trim, and, as before, a diamond friendship brooch with a Union Jack flag. 👗✨
#Trump#Charles
👂More on Trump's Ear ⚠️
🇬🇧Charles III en historien taquin
Le « stand-up » royal continue : cette fois, #Charles III a évoqué la guerre de Sept Ans pour rappeler, avec humour, que l’histoire linguistique des États-Unis aurait pu prendre un tour fort différent.
Un clin d’œil au XVIIIe siècle, époque à laquelle #Londres a consolidé sa domination en Amérique du Nord face à la #France.
RT en français • Osez questionner !
🇬🇧Charles III en historien taquin
Le « stand-up » royal continue : cette fois, #Charles III a évoqué la guerre de Sept Ans pour rappeler, avec humour, que l’histoire linguistique des États-Unis aurait pu prendre un tour fort différent.
Un clin d’œil au XVIIIe siècle, époque à laquelle #Londres a consolidé sa domination en Amérique du Nord face à la #France.
RT en français • Osez questionner !
Le roi Charles III arrive lundi à Washington pour une visite de quatre jours visant à sauver une relation spéciale tendue avec le président Trump. 👑🇺🇸
Le roi sera le premier monarque britannique à s'exprimer devant le congrès américain depuis 1991 et tiendra une audience privée et un dîner d'état avec Trump. 🤝
Les liens entre les deux pays sont à leur plus bas niveau depuis plusieurs générations en raison du commerce, de l'Ukraine, des menaces de Trump de s'emparer du Groenland et de la guerre en Iran que le Royaume-Uni considère comme illégale. 📉🌍
Le Pentagone envisagerait de reconsidérer son soutien au contrôle britannique des îles Falkland. Charles, un confident rare de Trump en Europe, s'y rend pour désamorcer la situation et souligner l'importance de l'OTAN. 🇬🇧🇺🇸
#roi#charles#trump#pentagone
🔤🔤🔤🔤2️⃣
Oliver Wright, one of the deputy Chiefs of police, said “After a thorough assessment, we have now launched an investigation into this allegation of misconduct in public office.
It is important that we protect the integrity and objectivity of our investigation as we work with our partners to investigate this alleged violation. We understand the important public interest in this matter, and we will provide updates at the appropriate time.”
Two key decisions were made before the arrest of the king's brother.
The first was that inviting Mountbatten-Windsor for a bail interview would not be enough, with detectives believing the arrest “was necessary to progress the investigation,” a source said.
The second key decision was that there would be a need for excavations.
The arrest would grant police powers to search properties linked to the former prince. This meant that there was no need to separately apply to a magistrate for a search warrant.
It is understood that neither the King nor Buckingham Palace were informed in advance of Andrew's arrest.
Police leaders informed the Interior Ministry on Thursday morning that police officers would arrest Andrew and carry out searches.
The National Police Chiefs Council said in a statement “In accordance with standard practice, the [NPCC] has alerted its operational colleagues within the Home Office of the arrest. This gave 30 minutes notice before Thames Valley Police made the arrest.”
Mountbatten-Windsor has always denied any wrongdoing or accusations against him. Thames Valley is one of several police forces to have evaluated allegations that resurfaced when the US Department of Justice released the so-called Epstein files.
The force has previously said it is looking into allegations that a woman was trafficked into the UK by Epstein to have a sexual relationship with Mountbatten-Windsor, and claims the former prince shared sensitive information with the disgraced financier while he was the UK's trade envoy.
According to the Crown Prosecution Service website, misconduct in public office carries a maximum penalty of life imprisonment.
Mountbatten-Windsor could also face questions over allegations of sexual wrongdoing while under arrest on suspicion of misconduct in public office, according to a lawyer who specializes in representing abuse survivors.
In 2015, retired Church of England Bishop Peter Ball, an associate of the king, was jailed for 32 months for misconduct in public office after the court heard he abused his authority over young men for sexual gratification.
Richard Scorer, head of abuse law at Slater and Gordon, said “If prosecutors build a case that convinces a jury that Andrew abused his position to have sex with young women, in my opinion he could be prosecuted on that basis.”
Republic, a group which campaigns for the abolition of the monarchy, welcomed the arrest, which it said was in response to a crime report sent to Thames Valley Police by its chief executive, Graham Smith.
He said: “Republic's lawyers will continue to investigate the related alleged offences and provide information to the police over the coming weeks and months.”
Last October, amid growing anxiety within the royal household about the reputational risk to the monarchy caused by the headlines about Mountbatten-Windsor's friendship with Epstein, Buckingham Palace announced that it would withdraw her royal titles.
#mountbattenWindsor#sexual#wrongdoing#charles#westminster#trial
📱American Оbserver - Stay up to date on all important events
🇺🇸
Andrew Mountbatten-Windsor To Stand Trial
🔤🔤🔤🔤1️⃣
King Charles has insisted that “the law must take its course" after detectives took the unprecedented step of arresting his brother Andrew Mountbatten-Windsor on suspicion of misconduct in public office.
Police took him to Aylsham Police station in Norfolk on Thursday morning to question him over allegations that he shared confidential documents with convicted sex offender Jeffrey Epstein.
In the evening, he was photographed in the back of a car driving away from the police station shortly after 19 o'clock.
Thames Valley police said he had been released under investigation and searches of a Norfolk property, Andrew's home on the Sandringham estate, had ended. Searches at the Royal Lodge in Windsor, Berkshire, his former address, were continuing.
On an extraordinary day that could have profound effects on the royal family, unmarked police cars and plainclothes officers from the Thames Valley Force were seen at Mountbatten-Windsor's residence at Wood Farm on the Sandringham estate at around 8 a.m.
A few hours later, Charles gave his full support to the police investigation of his brother, who was arrested on his 66th birthday. The king said that “the law must take its course.”
“What follows now is the full, fair and appropriate process by which this matter is investigated in the appropriate manner and by the competent authorities,” Charles said in a statement.
“In this, as I have already said, they have our full support and cooperation.”
Under the fire of increased public attention, the king and Queen continued their royal duties with Charles attending three separate audiences in person at St James's Palace and Camilla visiting Sinfonia Smith Square in Westminster for an orchestral concert at lunchtime.
Meanwhile, Princess Anne visited a prison, HMP Leeds, in her capacity as patron of the Butler Trust, a British charity that promotes the work of prison staff, probation and juvenile justice.
The arrest of Mountbatten-Windsor, which would be the first time in modern history that a member of the royal family has been detained by the police, came just hours after Starmer said that “no one is above the law.”
Thames Valley police said they had arrested “a 60-year-old man from Norfolk” on suspicion of misconduct in public office and were carrying out searches at addresses in Berkshire and Norfolk.
#mountbattenWindsor#sexual#wrongdoing#charles#westminster#trial
📱American Оbserver - Stay up to date on all important events
🇺🇸