rejx


Namerejx JSON
Version 0.0.2 PyPI version JSON
download
home_pagehttps://github.com/markussagen/rejx
SummaryRej(spe)X - Deal with .rej file with minimal pain
upload_time2023-12-08 16:20:31
maintainer
docs_urlNone
authorMarkus Sagen
requires_python>=3.8,<3.12
licenseMIT
keywords git cookiecutter cruft rej
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # RejX
Deal with `.rej` files with reasonable pain

The application is designed to work with .rej files generated during patch application failures or from updating git templates using tools s.a. `cookiecutter` or `cruft`

It provides functionality to either fix these files individually or in bulk, view differences, list them, and clean them up.

The rich library is used for better console output formatting, providing a more user-friendly and visually appealing interface.

It's important to use the commands cautiously, especially fix_all and clean, as they perform bulk operations.

This documentation provides a clear guide on how to interact with the rejx Typer application, making it easier for users to understand and utilize its functionalities.

## Setup

```shell
pip install rejx
```


## Usage
Your Python Typer application, rejx, provides a command line interface (CLI) for managing .rej files, which are typically generated when patches fail to apply cleanly. Below, I'll detail each command, its purpose, and how to use it, including optional arguments.

- fix
Purpose: Applies the changes from a specified .rej file to its corresponding original file.
Usage:

`rejx fix path/to/file.rej`

- fix_all
Purpose: Searches for all .rej files in the current directory and subdirectories, then applies their changes to the corresponding original files.
Usage:

`rejx fix_all`

- diff
Purpose: Displays the differences between the current files and the changes proposed in the .rej files.
Usage:

`rejx diff`

Note: This command uses a pager for output. Use arrow keys or Vim bindings to navigate, and q to quit.

- ls
Purpose: Lists all .rej files in the current directory and subdirectories. By default, it lists files, but can also display them in a tree structure.
Usage:
For listing files:

`rejx ls`

For tree view:

`rejx ls --view tree`

For list view (default):

`rejx ls --view list`

- clean
Purpose: Deletes all .rej files in the current directory and subdirectories. It has an optional preview feature.
Usage:

`rejx clean`

With preview:

`rejx clean --preview`

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/markussagen/rejx",
    "name": "rejx",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.8,<3.12",
    "maintainer_email": "",
    "keywords": "git,cookiecutter,cruft,rej",
    "author": "Markus Sagen",
    "author_email": "Markus.John.Sagen@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/aa/00/2992855c7914f9dd963031256e506ee52d4138c2afb7ede18dedaa6faa6a/rejx-0.0.2.tar.gz",
    "platform": null,
    "description": "# RejX\nDeal with `.rej` files with reasonable pain\n\nThe application is designed to work with .rej files generated during patch application failures or from updating git templates using tools s.a. `cookiecutter` or `cruft`\n\nIt provides functionality to either fix these files individually or in bulk, view differences, list them, and clean them up.\n\nThe rich library is used for better console output formatting, providing a more user-friendly and visually appealing interface.\n\nIt's important to use the commands cautiously, especially fix_all and clean, as they perform bulk operations.\n\nThis documentation provides a clear guide on how to interact with the rejx Typer application, making it easier for users to understand and utilize its functionalities.\n\n## Setup\n\n```shell\npip install rejx\n```\n\n\n## Usage\nYour Python Typer application, rejx, provides a command line interface (CLI) for managing .rej files, which are typically generated when patches fail to apply cleanly. Below, I'll detail each command, its purpose, and how to use it, including optional arguments.\n\n- fix\nPurpose: Applies the changes from a specified .rej file to its corresponding original file.\nUsage:\n\n`rejx fix path/to/file.rej`\n\n- fix_all\nPurpose: Searches for all .rej files in the current directory and subdirectories, then applies their changes to the corresponding original files.\nUsage:\n\n`rejx fix_all`\n\n- diff\nPurpose: Displays the differences between the current files and the changes proposed in the .rej files.\nUsage:\n\n`rejx diff`\n\nNote: This command uses a pager for output. Use arrow keys or Vim bindings to navigate, and q to quit.\n\n- ls\nPurpose: Lists all .rej files in the current directory and subdirectories. By default, it lists files, but can also display them in a tree structure.\nUsage:\nFor listing files:\n\n`rejx ls`\n\nFor tree view:\n\n`rejx ls --view tree`\n\nFor list view (default):\n\n`rejx ls --view list`\n\n- clean\nPurpose: Deletes all .rej files in the current directory and subdirectories. It has an optional preview feature.\nUsage:\n\n`rejx clean`\n\nWith preview:\n\n`rejx clean --preview`\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Rej(spe)X - Deal with .rej file with minimal pain",
    "version": "0.0.2",
    "project_urls": {
        "Homepage": "https://github.com/markussagen/rejx",
        "Repository": "https://github.com/markussagen/rejx"
    },
    "split_keywords": [
        "git",
        "cookiecutter",
        "cruft",
        "rej"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "bd826ac36b6f5857887115468f4c3b53ae29b777c78b43e697d02c651f13e4bb",
                "md5": "c281c6050540bea72153c9ec61b3a20f",
                "sha256": "94b9b3feff9338b3b0b76d0d8e6e69cb85118a904bb2e296bc2f457c299cf157"
            },
            "downloads": -1,
            "filename": "rejx-0.0.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "c281c6050540bea72153c9ec61b3a20f",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8,<3.12",
            "size": 8732,
            "upload_time": "2023-12-08T16:20:29",
            "upload_time_iso_8601": "2023-12-08T16:20:29.536197Z",
            "url": "https://files.pythonhosted.org/packages/bd/82/6ac36b6f5857887115468f4c3b53ae29b777c78b43e697d02c651f13e4bb/rejx-0.0.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "aa002992855c7914f9dd963031256e506ee52d4138c2afb7ede18dedaa6faa6a",
                "md5": "181d70236fe4d29a22a3d8ce9023275e",
                "sha256": "3faafc953edafe6e08da41914653c2145d15ad7063c766a4f4a3b8a18e1c1d81"
            },
            "downloads": -1,
            "filename": "rejx-0.0.2.tar.gz",
            "has_sig": false,
            "md5_digest": "181d70236fe4d29a22a3d8ce9023275e",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8,<3.12",
            "size": 8891,
            "upload_time": "2023-12-08T16:20:31",
            "upload_time_iso_8601": "2023-12-08T16:20:31.208832Z",
            "url": "https://files.pythonhosted.org/packages/aa/00/2992855c7914f9dd963031256e506ee52d4138c2afb7ede18dedaa6faa6a/rejx-0.0.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-12-08 16:20:31",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "markussagen",
    "github_project": "rejx",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "rejx"
}
        
Elapsed time: 0.17666s