Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable branch deploy functionality. #10

Merged

Conversation

SirEntropy
Copy link
Contributor

cased deploy will trigger a questionnaire about which branch to deploy unless provided by flags.

Example usage:
CleanShot 2024-10-03 at 18 44 18

And succeed as expected:
CleanShot 2024-10-03 at 18 44 32

Copy link

linear bot commented Oct 4, 2024

CAS-1945 CLI to match web functionality.

Bringing the CLI up to date with current functionality. The APIs have slightly changed because of projects.

rick let's coordinate on this, I can take make sure the server-side is working.

Functionality

Must-have

These already exist or need to be slightly updated because of new APIs

  • Deploy a branch
  • List projects
  • List targets for a project
  • List all deploys
  • List deploys for a project
  • List deploys for a target
  • Auto-generate basic deploy script for onboarding

More to-do [ted]

  • Create a target
  • Create a Cased project (associated with a repo)

Packaging

  • Update README for running it
  • Need to ensure docs are accurate
  • Make sure rick has access to cased pypi
  • Version the cli
  • Upload to pypi

Marketing

  • Ted to announce etc

More Ideas

What are other onboarding things?

  • Can I run some command from the website/docs and install cased cli? Probably a bash script piped in
  • Goal: onboarding setup

@@ -89,6 +89,8 @@ def projects(details=True):
This command shows a list of available projects and allows you to select one as your current working project.
If a project is already selected, it will be highlighted in the list.
The selected project's name and ID are stored as environment variables for future use.

Use the --details or --d option to show detailed information about each project, by default it is set to True.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's nice.

self.response_body = response_body
super().__init__(self.message)

# TODO: make this specific based on status codes returned from our API,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you make a linear issue for this?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah sure

Copy link
Contributor

@tnm tnm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚢 good stuff

@SirEntropy SirEntropy merged commit 988fe74 into main Oct 4, 2024
1 check passed
@SirEntropy SirEntropy deleted the rick/cas-1945-cli-to-match-web-functionality-deploy branch October 4, 2024 03:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants