A CLI tool for managing mantine UI components with Typer and Rich
Project description
Mantine Component CLI
A command-line interface (CLI) tool for managing mantine UI components in a directory structure, built with Typer
and Rich
. The tool supports listing components by category, filtering by tags, copying components, and modifying their attributes.
Features
- List Categories: List all component categories based on
attributes.json
. - List Components: Display all components along with their categories.
- Filter by Category: List components filtered by a specific category.
- Copy Components: Copy a selected component to the current or target directory.
- Add Tags: Add a tag to a component by modifying its
attributes.json
. - Filter by Tags: List components that have specific tags.
Installation
You can install this CLI tool via PyPI:
pip install mantine-component-cli
List all categories:
mantine-component-cli list-categories
List all components:
mantine-component-cli list-components```
List components filtered by category:
```bash
mantine-component-cli list-by-category --category app-cards```
Copy a component to the current or target directory:
```bash
mantine-component-cli copy-component --component-name ActionsGrid --target-dir ./my-target-dir```
Add a tag to a component:
```bash
mantine-component-cli add-tag --component-name ActionsGrid --tag new-feature```
List components filtered by tag(s):
```bash
mantine-component-cli list-by-tags --tags new-feature,urgent```
### Contributing
Contributions are welcome! Please open an issue or submit a pull request for any enhancements or fixes.
### License
This project is licensed under the MIT License. See the LICENSE file for details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file mantine_component_cli-0.1.0.tar.gz
.
File metadata
- Download URL: mantine_component_cli-0.1.0.tar.gz
- Upload date:
- Size: 7.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 035bac3c913c671025ad2a4301cbb15d577e614c8645f8c42a2ae8096ad8cf4d |
|
MD5 | 07e80d1ce7f43e458973e713713d6863 |
|
BLAKE2b-256 | 0b76a4d0406f3f28d634b991fd69c6ec74b4eb7d1e6ffb4fc06e56f69b4e6851 |
File details
Details for the file mantine_component_cli-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: mantine_component_cli-0.1.0-py3-none-any.whl
- Upload date:
- Size: 8.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 852c320dd5799bf3ec4ce85978cc7eea0eeec683c34e74f2622f713650fac3b9 |
|
MD5 | 692855fb0be20dcaa2ad0be6d32a41db |
|
BLAKE2b-256 | 8d1a2c6c6530b66df20733b405998334d057fdc3d6bf3c446544b797aa9f314a |