Convenient command line tool, providing magic tag function
Project description
soldcli - 便捷命令列工具
快速便捷的系統配置與診斷工具,專為 Unix-like 環境設計。
快速開始
安裝
pip install soldcli
基本使用
- 生成提示檔案 - 在當前目錄建立 hint.md
soldcli pack1
- 系統診斷 - 建立包含系統資訊的診斷報告
soldcli pack2 myproject # 在 /tmp 建立診斷專案
soldcli pack2 myproject --base-dir . # 在當前目錄建立
使用 uvx (推薦)
# 無需預先安裝,直接執行
uvx soldcli pack1
uvx soldcli pack2 test-env
主要功能
- pack1: 魔術標籤功能,快速生成專案提示檔案
- pack2: 系統環境診斷,支援 WSL2、macOS、Ubuntu、Arch Linux 等
版本資訊
- 需要 Python 3.10 或以上版本
- 最新版本: 0.2.0
soldcli - Convenient CLI Tool
A quick and convenient system configuration and diagnostic tool designed for Unix-like environments.
Quick Start
Installation
pip install soldcli
Basic Usage
- Generate hint file - Create hint.md in current directory
soldcli pack1
- System diagnostics - Create diagnostic report with system information
soldcli pack2 myproject # Create in /tmp
soldcli pack2 myproject --base-dir . # Create in current directory
Using uvx (Recommended)
# Run directly without pre-installation
uvx soldcli pack1
uvx soldcli pack2 test-env
Main Features
pack1 - Magic Tag
- Generates a hint.md file in the current directory
- Contains project information and usage suggestions
- Useful for project initialization and documentation
pack2 - System Diagnostics
- Creates a diagnostic project directory with system information
- Interactive confirmation before creation
- Detects environment type (WSL2, macOS, various Linux distributions)
- Reports:
- OS type and version
- CPU architecture (x86_64, arm64, etc.)
- Memory information
- GPU detection
- Docker compatibility suggestions
Supported Environments
- WSL2 (Windows Subsystem for Linux 2)
- macOS
- Ubuntu
- Arch Linux
- Other Linux distributions
Requirements
- Python 3.10 or higher
- Unix-like operating system
Output Files
pack1 Output
hint.md- Project hints and usage suggestions
pack2 Output
checked.md- System diagnostic reportREADME.md- Project description- Additional auxiliary files (extensible)
Advanced Usage
Custom Base Directory
# Specify a custom base directory for pack2
soldcli pack2 myproject --base-dir /home/user/diagnostics
Check Version
soldcli --version
Get Help
soldcli --help
soldcli pack2 --help
Use Cases
- Remote Server Setup - Quickly understand system environment
- Docker Preparation - Check CPU architecture compatibility
- CI/CD Environment - Validate build environment
- Development Setup - Document system specifications
- Troubleshooting - Gather system information for debugging
Development
This tool is part of the soldpack project, focusing on Infrastructure as Code practices.
License
MIT License
Changelog
- v0.2.0 - Added pack2 system diagnostics with interactive confirmation
- v0.1.0 - Initial release with pack1 magic tag functionality
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
soldcli-0.2.0.tar.gz
(11.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
soldcli-0.2.0-py3-none-any.whl
(11.0 kB
view details)
File details
Details for the file soldcli-0.2.0.tar.gz.
File metadata
- Download URL: soldcli-0.2.0.tar.gz
- Upload date:
- Size: 11.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.11.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7293b6ec1aa8fd249f9a12292ff1d9405457369798d382a2c44343d63ffb22f9
|
|
| MD5 |
6808b07c34d03922445413afd9928e8c
|
|
| BLAKE2b-256 |
dc5e2a9dc84afc031922f44780464e0e236f70f7632e18e6ab1237a17cfd4cff
|
File details
Details for the file soldcli-0.2.0-py3-none-any.whl.
File metadata
- Download URL: soldcli-0.2.0-py3-none-any.whl
- Upload date:
- Size: 11.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.11.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
89b597dad99071c21fd21f7576f1d7c0ae7d56ad31b7e1cb198a68d59ab509f6
|
|
| MD5 |
73f8965d8b579c5a40457e43be53a283
|
|
| BLAKE2b-256 |
8483bef0d5b48f76f8708b33e9622301d5a3c9eeb4b87d7301cb78153a828983
|