Metadata-Version: 2.4
Name: git-snap
Version: 1.0.0
Summary: Uma ferramenta TUI Local-First que transforma o git numa máquina de 'snapshots' simples e segura.
Author-email: mefrraz <mefrraz@users.noreply.github.com>
License: MIT License
        
        Copyright (c) 2025 mefrraz
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT of OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
        
Project-URL: Homepage, https://github.com/mefrraz/git-snap
Project-URL: Bug Tracker, https://github.com/mefrraz/git-snap/issues
Keywords: git,tui,snapshot,backup,versioning
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Topic :: Software Development :: Version Control
Classifier: Topic :: System :: Archiving :: Backup
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Environment :: Console
Classifier: Topic :: Utilities
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: PySide6>=6.6.0
Requires-Dist: markdown2>=2.4.0
Provides-Extra: test
Requires-Dist: pytest; extra == "test"
Requires-Dist: pytest-mock; extra == "test"
Dynamic: license-file

# GitSnap

[![PyPI version](https://badge.fury.io/py/git-snap.svg)](https://badge.fury.io/py/git-snap)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)

**GitSnap** é uma ferramenta com interface gráfica (TUI) que simplifica o uso do Git, transformando-o numa máquina de "snapshots" segura e fácil de usar. Foi desenhada para quem quer versionar projetos sem a complexidade dos comandos tradicionais do Git.

![placeholder-screenshot](https://user-images.githubusercontent.com/12345/234567890-placeholder.png)
*(Nota: Imagem de placeholder. Uma captura de ecrã real da aplicação será adicionada aqui.)*

---

## Funcionalidades Principais

-   **Interface Gráfica Intuitiva:** Gestão de snapshots através de uma TUI simples e direta.
-   **Snapshots com Um Clique:** Salve o estado atual do seu projeto com uma única ação.
-   **Restauração Segura:** Volte a um estado anterior sem medo de perder trabalho. Um backup é criado automaticamente.
-   **Inicialização Automática:** Se o seu projeto ainda não é um repositório Git, o GitSnap trata disso por si.
-   **Modo CLI:** Para quem prefere, também existe uma interface de linha de comando.

## Instalação

A forma recomendada de instalar o `git-snap` é através do `pipx`, que instala a ferramenta num ambiente isolado.

```bash
pipx install git-snap
```

Após a instalação, pode executar a aplicação com o comando `git-snap`.

## Como Usar

### Interface Gráfica (Recomendado)

Para iniciar a interface principal, basta executar:

```bash
git-snap
```

### Interface de Linha de Comando (CLI)

Para tarefas automatizadas ou para quem prefere o terminal, os seguintes comandos estão disponíveis:

-   **Salvar um snapshot:**
    ```bash
    git-snap-cli save "A minha mensagem de snapshot"
    ```

-   **Listar todos os snapshots:**
    ```bash
    git-snap-cli list
    ```

-   **Restaurar um snapshot (usando o hash curto):**
    ```bash
    git-snap-cli restore <hash_do_snapshot>
    ```

## Licença

Este projeto está licenciado sob a Licença MIT. Consulte o ficheiro `LICENSE` para mais detalhes.
