Skip to content

Commit

Permalink
merge
Browse files Browse the repository at this point in the history
  • Loading branch information
SirEntropy committed Sep 9, 2024
2 parents baacf39 + 86cc406 commit 8da74e1
Show file tree
Hide file tree
Showing 14 changed files with 912 additions and 420 deletions.
72 changes: 59 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,19 +22,6 @@ pip install cased

This will install the latest version of the tool from PyPI.

For development installation:

1. Clone the repository:
```
git clone https://github.com/cased/csd.git
cd csd
```

2. Install in editable mode:
```
pip install -e .
```

## Usage

After installation, you can use the CLI tool by running `cased` followed by a command:
Expand All @@ -57,6 +44,65 @@ For more details on each command, use:
cased COMMAND --help
```

## Development

To set up the Cased CLI for development:

1. Clone the repository:
```
git clone https://github.com/cased/cli.git
cd cli
```

2. Install Poetry (if not already installed):
```
pip install poetry
```

3. Install dependencies:
```
poetry install
```

4. Activate the virtual environment:
```
poetry shell
```

5. Run the CLI in development mode:
```
poetry run cased
```

### Making Changes

1. Make your changes to the codebase.
2. Update tests if necessary.
3. Run tests:
```
poetry run pytest
```
4. Build the package:
```
poetry build
```

### Submitting Changes

1. Create a new branch for your changes:
```
git checkout -b feature/your-feature-name
```
2. Commit your changes:
```
git commit -am "Add your commit message"
```
3. Push to your branch:
```
git push origin feature/your-feature-name
```
4. Create a pull request on GitHub.

## Contact

For any questions or support, please contact [email protected]
82 changes: 82 additions & 0 deletions cased.egg-info/PKG-INFO
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
Metadata-Version: 2.1
Name: cased
Version: 0.1.0
Summary: A CLI tool for managing deployments and branches
Home-page: https://github.com/cased/csd
Author: Cased
Author-email: [email protected]
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.7
Description-Content-Type: text/markdown
Requires-Dist: click
Requires-Dist: requests
Requires-Dist: rich
Requires-Dist: questionary
Requires-Dist: python-dateutil
Requires-Dist: inquirer
Requires-Dist: PyYAML

# Cased CLI

## Overview

Cased CLI is a powerful command-line interface tool designed to streamline deployment processes and manage branches efficiently. It provides an intuitive way to interact with the Cased system, offering functionalities such as user authentication, deployment management, and branch oversight.

## Features

- User authentication (login/logout)
- View recent deployments
- Display active branches
- Interactive deployment process with branch and target selection
- Comprehensive help system

## Installation

You can install the Cased CLI tool using pip:

```
pip install cased
```

This will install the latest version of the tool from PyPI.

For development installation:

1. Clone the repository:
```
git clone https://github.com/cased/csd.git
cd csd
```

2. Install in editable mode:
```
pip install -e .
```

## Usage

After installation, you can use the CLI tool by running `cased` followed by a command:

```
cased --help
```

### Available Commands:

- `cased login`: Log in to the Cased system
- `cased logout`: Log out from the Cased system
- `cased deployments`: View recent deployments
- `cased branches`: View active branches
- `cased deploy`: Deploy a branch to a target environment

For more details on each command, use:

```
cased COMMAND --help
```

## Contact

For any questions or support, please contact [email protected]
16 changes: 16 additions & 0 deletions cased.egg-info/SOURCES.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
README.md
setup.py
cased/__init__.py
cased/cli.py
cased.egg-info/PKG-INFO
cased.egg-info/SOURCES.txt
cased.egg-info/dependency_links.txt
cased.egg-info/entry_points.txt
cased.egg-info/requires.txt
cased.egg-info/top_level.txt
cased/commands/__init__.py
cased/commands/build.py
cased/commands/deploy.py
cased/commands/init.py
cased/commands/login.py
cased/commands/resources.py
Empty file.
2 changes: 2 additions & 0 deletions cased.egg-info/entry_points.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[console_scripts]
cased = cased.cli:cli
7 changes: 7 additions & 0 deletions cased.egg-info/requires.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
click
requests
rich
questionary
python-dateutil
inquirer
PyYAML
1 change: 1 addition & 0 deletions cased.egg-info/top_level.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
cased
2 changes: 0 additions & 2 deletions cased/cli.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import click

from cased.commands.build import build
from cased.commands.deploy import deploy
from cased.commands.init import init
from cased.commands.login import login, logout
Expand All @@ -22,7 +21,6 @@ def cli():

cli.add_command(deploy)
cli.add_command(init)
cli.add_command(build)
cli.add_command(login)
cli.add_command(logout)
cli.add_command(deployments)
Expand Down
177 changes: 0 additions & 177 deletions cased/commands/build.py

This file was deleted.

Loading

0 comments on commit 8da74e1

Please sign in to comment.