TGTGInsighttelegram intelligenceLIVE / telegram public index
← Python Заметки

TGINSIGHT SIMILAR POSTS

Најди сличен содржај

Изворен канал @pythonotes · Post #421 · 23 мар.

Мы используем 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

Hashtags

Резултати

Пронајдени 33 слични објави

Пребарај: #groups

当前筛选 #groups清除筛选
The Telegram Times

@TheTGTimes · Post #272 · 14.02.2024 г., 14:06

📰Group Appearance Settings Upgrading your group will unlock new features for the group: - Color and Profile Logo - Group Status Emoji - Group Theme and Wallpaper - Group Emoji Pack #Boost | #Groups 👉The TG Times

The Telegram Times

@TheTGTimes · Post #264 · 13.02.2024 г., 10:22

📰Group Custom Emoji Pack Group Admins can set a Custom Emoji Pack for the group. All members can use emojis from this pack in the group, even without ⭐️ Premium subscription. #Boost | #Groups 👉The TG Times

The Telegram Times

@TheTGTimes · Post #262 · 13.02.2024 г., 10:14

📰Boost to send messages in the group Group admins can choose how many boosts a user must give to the group to bypass restrictions on sending messages. #Boost | #Groups 👉The TG Times

The Telegram Times

@TheTGTimes · Post #248 · 31.01.2024 г., 08:45

📰Boosting Groups Changes in the configuration of Telegram for macOS show that it will be possible to boost groups. After upgrading groups, the ability to set the background for the group, choose the status emoji and choose the emoji pack for the group will be added. It seems that just as in groups, the special sticker pack for that group can be set, it will also be possible to choose the emoji pack. Thanks to @tgcrawl #Boost | #Groups 👉The TG Times

TGBlogLeaks

@TGBlogLeaks · Post #350 · 31.01.2024 г., 09:03

📰Boosting Groups Changes in the configuration of Telegram for macOS show that it will be possible to boost groups. After upgrading grouos, the ability to set the background for the group, choose the status emoji and choose the emoji pack for the group will be added. It seems that just as in groups, the special sticker pack for that group can be set, it will also be possible to choose the emoji pack. Thanks to @tgcrawl #Boost | #Groups 👉The TG Times

iDubTG

@idubtg · Post #501 · 31.01.2024 г., 11:21

📰Boosting Groups Changes in the configuration of Telegram for macOS show that it will be possible to boost groups. After upgrading grouos, the ability to set the background for the group, choose the status emoji and choose the emoji pack for the group will be added. It seems that just as in groups, the special sticker pack for that group can be set, it will also be possible to choose the emoji pack. Thanks to @tgcrawl #Boost | #Groups 👉The TG Times

BotsGram®

@botsgram_cu · Post #3776 · 04.04.2021 г., 11:12

@TheNexasMusic_bot Qué puede hacer este bot? Con este bot puedes reproducir música nn grupos de telegram a través del chat de voz! Idioma: Inglés (visto en @BotsGram_cu) #groups, #music

BotsGram®

@botsgram_cu · Post #3774 · 04.04.2021 г., 01:31

@Gramaphone_voice_bot Qué puede hacer este bot? Con este bot puedes reproducir música nn grupos de telegram a través del chat de voz! Idioma: Inglés (visto en @BotsGram_cu) #groups, #music

BotsGram®

@botsgram_cu · Post #3712 · 24.03.2021 г., 11:04

@MultiForwardBot Qué puede hacer este bot? Este bot reenvía mensajes y medios de tu canal a grupos ilimitados de telegram! Idioma: Inglés, Italiano, Español (visto en @BotsGram_cu) #channel, #groups

ПретходнаСтраница 1 од 3Следна