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

Резултати

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

Пребарај: #omniconnect

当前筛选 #omniconnect清除筛选
TON Crypto News

@toncoin_rap · Post #179 · 27.09.2024 г., 13:50

🎧⤴ ✈️Telegram’s Billion Users Set to Enter Web3 with Bitget’s OmniConnect – Game-Changer for Blockchain Integration Bitget Wallet has launched OmniConnect, an SDK that allows Telegram’s Mini-Apps to interact with 500+ blockchains, including Solana, TON, and EVM-compatible networks. ► Full News (Expand) Chorus: Bitget’s the key, unlocking the gate, Telegram flows, Web3’s our fate. From Solana to EVM, we transcend, Blockchain’s the wave, no need to pretend. Verse 1: OmniConnect dropped, it’s a brand new day, Telegram’s Mini-Apps leading the way. A billion strong, ready to dive, In this Web3 world, we’re coming alive. No more limits, chains unite, Solana, TON, now feeling the hype. Transactions smooth, signatures signed, Blockchain’s the future, leave doubt behind. Chorus: Bitget’s the key, unlocking the gate, Telegram flows, Web3’s our fate. From Solana to EVM, we transcend, Blockchain’s the wave, no need to pretend. Verse 2: Dev tools stacked, the future’s bright, Mini-Apps thrive, in multichain flight. From gasless trades, to bots that scale, Bitget’s moves, you know they won’t fail. August came, with millions onboard, Global downloads, breaking the cord. Secure logins, Google and Mail, This is the story, we’re here to prevail. Chorus: Bitget’s the key, unlocking the gate, Telegram flows, Web3’s our fate. From Solana to EVM, we transcend, Blockchain’s the wave, no need to pretend. Verse 3: Trading in wallets, social connect, No gas fees now, what you expect? The ecosystem’s growing, feel the rise, Web3’s here, open your eyes. Devs are building, ready to soar, Bitget’s tools open the door. From DeFi to games, there’s no divide, With OmniConnect, it’s a global ride. Chorus: Bitget’s the key, unlocking the gate, Telegram flows, Web3’s our fate. From Solana to EVM, we transcend, Blockchain’s the wave, no need to pretend. Bridge: We’re bridging the chains, we’re crossing the lines, Telegram’s power in these modern times. A billion users, ready to fly, Web3’s calling, the limit’s the sky. #Web3Adoption#OmniConnect#BitgetWallet #TONCryptoNewsRapStyle 🎧@toncoin_rap