Skip to content

Commit

Permalink
feat: rebrand
Browse files Browse the repository at this point in the history
  • Loading branch information
Alw3ys committed Nov 19, 2023
1 parent 17c67bf commit 5e02a46
Show file tree
Hide file tree
Showing 9 changed files with 26 additions and 26 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright 2023 DeployPlex
Copyright 2023 Dosei

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# dctl

`dctl` is the Command Line Interface (CLI) for DeployPlex.
`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%40deployplex)](https://x.com/deployplex)
[![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
Expand All @@ -18,14 +18,14 @@ You can install and configure dctl using this command:
pip install -U dctl
```

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

Alternatively you can use a deployplex token generated from the dashboard and set it as an environment variable.
Alternatively you can use a Dosei token generated from the dashboard and set it as an environment variable.
```bash
export DEPLOYPLEX_TOKEN="you_deployplex_token"
export DOSEI_TOKEN="you_dosei_token"
```

## Usage
Expand All @@ -42,14 +42,14 @@ steps:
uses: actions/checkout@v3

- name: Setup dctl CLI
uses: deployplex/[email protected]
uses: dosei/[email protected]
with:
token: ${{ secrets.DEPLOYPLEX_TOKEN }}
token: ${{ secrets.DOSEI_TOKEN }}
```
## Learn more
The best place to get started is following our getting started guide on the [DeployPlex CLI Documentation](https://docs.deployplex.com/cli).
The best place to get started is following our getting started guide on the [Dosei CLI Documentation](https://docs.docei.ai/cli).
## LICENSE
Expand Down
8 changes: 4 additions & 4 deletions action.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
name: "Setup dctl"
description: 'Setup dctl (DeployPlex CLI) in your Github Actions workflow.'
author: DeployPlex
description: 'Setup dctl (Dosei CLI) in your Github Actions workflow.'
author: doseiai

branding:
icon: 'box'
color: 'black'

inputs:
token:
description: 'Your DeployPlex token.'
description: 'Your Dosei token.'
required: false

runs:
Expand All @@ -19,6 +19,6 @@ runs:
python-version: '3.11'
- run: python3 -m pip install dctl==0.0.13
shell: bash
- run: echo "DEPLOYPLEX_TOKEN=${{ inputs.token }}" >> $GITHUB_ENV
- run: echo "DOSEI_TOKEN=${{ inputs.token }}" >> $GITHUB_ENV
if: ${{ inputs.token }}
shell: bash
4 changes: 2 additions & 2 deletions dctl/commands/login.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def do_GET(self):
config.store_token_from_session(SessionCredentials(**response.json()))
AuthHandler.succeeded = True
self.send_response(302)
self.send_header('Location', 'https://deployplex.com/login/cli')
self.send_header('Location', 'https://dosei.ai/login/cli')
self.end_headers()
else:
self.send_response(400)
Expand All @@ -43,7 +43,7 @@ def do_GET(self):

@click.command()
def login():
"""Authenticate with a DeployPlex"""
"""Authenticate with a Dosei"""
# Spin up an HTTP server
server = ThreadingHTTPServer(('localhost', 8085), AuthHandler)

Expand Down
2 changes: 1 addition & 1 deletion dctl/commands/logout.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

@click.command()
def logout():
"""Remove Authentication with a DeployPlex"""
"""Remove Authentication with a Dosei"""
session = config.session()
headers = {**get_auth_header()}
url = f"{config.api_base_url}/auth/logout"
Expand Down
2 changes: 1 addition & 1 deletion dctl/commands/logs.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
@click.command()
@click.option('--owner', default=None, required=True)
def logs(owner):
"""Stream project logs from DeployPlex"""
"""Stream project logs from Dosei"""
auth_header = get_auth_header()
params = owner_params(owner)
url = f"{config.api_base_url}/projects/{params['owner_name']}/{params['project_name']}/logs/stream"
Expand Down
8 changes: 4 additions & 4 deletions dctl/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ def __init__(self):
if self._initialized:
return

self._credentials_path = os.path.expanduser('~/.deployplex/credentials.json')
self._token = os.getenv("DEPLOYPLEX_TOKEN")
self._credentials_path = os.path.expanduser('~/.dosei/credentials.json')
self._token = os.getenv("DOSEI_TOKEN")

self.api_base_url = os.getenv("API_BASE_URL", "https://api.deployplex.com")
self.api_base_url = os.getenv("API_BASE_URL", "https://api.dosei.ai")
self.github_client_id = "Iv1.0d2388105db85287"

self._initialized = True
Expand Down Expand Up @@ -55,7 +55,7 @@ def session_token(self) -> str | None:
"""
Get session token
Use self.token if set, if not set, use ~/.dplex/credentials.json
Use self.token if set, if not set, use ~/.dosei/credentials.json
"""
if self._token:
return self._token
Expand Down
4 changes: 2 additions & 2 deletions dctl/utils/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ def get_auth_header():
token = config.session_token()
if token is None:
raise click.ClickException(
'To get started with DeployPlex CLI, please run: dctl login\n'
'Alternatively, populate the DEPLOYPLEX_TOKEN environment variable with a DeployPlex API authentication '
'To get started with Dosei CLI, please run: dctl login\n'
'Alternatively, populate the DOSEI_TOKEN environment variable with a Dosei API authentication '
'token.'
)
return {"Authorization": f"Bearer {token}"}
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[tool.poetry]
name = "dctl"
version = "0.0.13"
description = "Command Line Interface (CLI) for DeployPlex"
authors = ["Alvaro Molina <am@deployplex.com>"]
version = "0.0.15"
description = "Command Line Interface (CLI) for Dosei"
authors = ["Alvaro Molina <am@dosei.ai>"]
license = "Apache-2.0"
readme = "README.md"

Expand Down

0 comments on commit 5e02a46

Please sign in to comment.