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

Feat general improvements #874

Merged
merged 18 commits into from
Jun 11, 2024

Conversation

byawitz
Copy link
Member

@byawitz byawitz commented Jun 7, 2024

What does this PR do?

  • Function pushing summary show good and bad results
  • Tip to use --verbose or --report
  • Print an error when --console --open didn't work
  • Print endpoint in whoami
  • Fix Check cannot destrucutre selfHosted of undefined bug
  • Delete halfway logged-in accounts.

Comment on lines +72 to +74
if (err !== null) {
console.log('\n');
error('Opening in default browser. ' + err)
Copy link
Member

Choose a reason for hiding this comment

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

what exactly are we doing here?why are we saying opening in default browser and appending the error?

Copy link
Member Author

Choose a reason for hiding this comment

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

When the browser failed to open the link for any reason the error function will preint
Error: Opening in default browser. ERROR MESSAGE

@@ -269,6 +269,7 @@ const init = new Command("init")
.option("--organizationId <organizationId>", "{{ spec.title|caseUcfirst }} organization ID")
.option("--projectId <projectId>", "{{ spec.title|caseUcfirst }} project ID")
.option("--projectName <projectName>", "{{ spec.title|caseUcfirst }} project ID")
.option(`-sh, --self-hosted`, `Flag for enabling custom endpoint for self hosted instances for non-logged in users`)
Copy link
Member

Choose a reason for hiding this comment

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

what are we trying to achieve here?

Copy link
Member Author

Choose a reason for hiding this comment

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

In case the user is not logged in, the project init will prompt the user to login,
By default, all logins are targeted at the cloud, this will give the user the option to add an endpoint

Copy link
Member

Choose a reason for hiding this comment

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

No lets not do this.. There is already a dedicated command for setting endpoint with appwrite client.
We should make sure every command has one job and one job only

@byawitz byawitz changed the base branch from feat-adding-register to feat-arg-project-init June 11, 2024 12:35
@christyjacob4 christyjacob4 merged commit 2db03b5 into feat-arg-project-init Jun 11, 2024
35 checks passed
@christyjacob4 christyjacob4 deleted the feat-general-improvements branch June 11, 2024 14:28
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.

None yet

2 participants