Skip to content

Commit

Permalink
rust migration
Browse files Browse the repository at this point in the history
  • Loading branch information
Alw3ys committed Jan 25, 2024
1 parent a2c759b commit fc9f20b
Show file tree
Hide file tree
Showing 25 changed files with 4 additions and 918 deletions.
33 changes: 0 additions & 33 deletions .github/workflows/publish.yaml

This file was deleted.

2 changes: 0 additions & 2 deletions .gitignore

This file was deleted.

46 changes: 3 additions & 43 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,56 +1,16 @@
# dctl
# setup-dctl

`dctl` is the Command Line Interface (CLI) for Dosei.

[![pypi version](https://img.shields.io/pypi/v/dctl.svg)](https://pypi.org/pypi/dctl/)
[![Downloads](https://static.pepy.tech/badge/dctl/week)](https://pypi.org/pypi/dctl/)
[![License: MIT](https://img.shields.io/badge/license-Apache--2.0-yellow)](https://www.apache.org/licenses/LICENSE-2.0)
[![Twitter](https://img.shields.io/twitter/url/https/x.com/dctl.svg?style=social&label=Follow%20%40dosei_ai)](https://x.com/dosei_ai)
[![](https://dcbadge.vercel.app/api/server/BP5aUkhcAh?compact=true&style=flat)](https://discord.com/invite/BP5aUkhcAh)

## Getting Started

### Requirements
- [Python 3.11.2](https://www.python.org/downloads/)

You can install and configure dctl using this command:
```bash
pip install -U dctl
```

Login into dosei to start using the CLI:
```bash
dctl login
```

Alternatively you can use a Dosei token generated from the dashboard and set it as an environment variable.
```bash
export DOSEI_TOKEN="you_dosei_token"
```
Setup dctl (Dosei CLI) in your Github Actions workflow.

## Usage

On the terminal
```bash
dctl --help
```

On Github Actions
```yaml
steps:
- name: Checkout Repository
uses: actions/checkout@v3

- name: Setup dctl CLI
uses: doseiai/dctl@0.0.18
uses: doseiai/setup-dctl@v0.0.1
with:
token: ${{ secrets.DOSEI_TOKEN }}
```
## Learn more
The best place to get started is following our getting started guide on the [Dosei CLI Documentation](https://docs.dosei.ai/cli).
## LICENSE
`dctl` is published under the [Apache-2.0 license](LICENSE)
5 changes: 1 addition & 4 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,7 @@ inputs:
runs:
using: "composite"
steps:
- uses: actions/setup-python@v4
with:
python-version: '3.11'
- run: python3 -m pip install dctl==0.0.18
- run: curl -fsSL https://dosei.ai/install.sh | sh
shell: bash
- run: echo "DOSEI_TOKEN=${{ inputs.token }}" >> $GITHUB_ENV
if: ${{ inputs.token }}
Expand Down
Empty file removed dctl/__init__.py
Empty file.
Empty file removed dctl/commands/__init__.py
Empty file.
12 changes: 0 additions & 12 deletions dctl/commands/env/__init__.py

This file was deleted.

28 changes: 0 additions & 28 deletions dctl/commands/env/list.py

This file was deleted.

43 changes: 0 additions & 43 deletions dctl/commands/env/set.py

This file was deleted.

65 changes: 0 additions & 65 deletions dctl/commands/login.py

This file was deleted.

19 changes: 0 additions & 19 deletions dctl/commands/logout.py

This file was deleted.

31 changes: 0 additions & 31 deletions dctl/commands/logs.py

This file was deleted.

39 changes: 0 additions & 39 deletions dctl/commands/new.py

This file was deleted.

12 changes: 0 additions & 12 deletions dctl/commands/project/__init__.py

This file was deleted.

Loading

0 comments on commit fc9f20b

Please sign in to comment.