-
-
Notifications
You must be signed in to change notification settings - Fork 12
feat : Nixopus CLI #274
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
Merged
Merged
feat : Nixopus CLI #274
Changes from 40 commits
Commits
Show all changes
86 commits
Select commit
Hold shift + click to select a range
772eb8b
Merge branch 'master' of github.com:shravan20/nixopus
zhravan 3cd7f44
test-cases: E2E for container flow
zhravan f0b0d88
test-cases: E2E for container logs flow
zhravan 4dcd592
test-cases: E2E test cases for Domain and Container flow
zhravan 5bd8a59
test-cases: E2E for container logs flow
zhravan 88ce5a5
test-cases: E2E for container logs flow
zhravan cf5e69d
test-cases: E2E for container logs flow
zhravan c6e4ffe
test-cases: E2E for container logs flow
zhravan 7d7907e
test-cases: E2E for container logs flow
zhravan b210ac0
test-cases: E2E for container logs flow
zhravan af923ac
test-cases: E2E for container logs flow
zhravan b79863f
sefl-review: fix typo
zhravan 66490eb
sefl-review: fix typo
zhravan 715b5a7
sefl-review: remove switch to simple if else
zhravan ed03066
pr-review: addressed comments
zhravan 3b81461
pr-review: addressed comments
zhravan 861009b
pr-review: addressed comments
zhravan f475f56
pr-review: addressed comments
zhravan 82a7600
pr-review: addressed comments
zhravan f121d38
pr-review: addressed comments
zhravan d7a0955
Merge branch 'master' into feat-e2e
zhravan 041c911
feat: supports multiple terminal sessions (limited to 3 max sessions …
raghavyuva b10444c
Merge pull request #225 from shravan20/feat-e2e
raghavyuva 623e794
Revert "test-cases: E2E test cases for Domain and Container flow"
raghavyuva 4324a3c
Merge pull request #264 from raghavyuva/revert-225-feat-e2e
raghavyuva b1e1ee3
Merge pull request #4 from shravan20/feat-e2e-test
zhravan 9543d91
Merge branch 'feat/develop' into master
zhravan 75089c9
test: E2E for Domain and Container Management (#267)
zhravan c8b67da
test: E2E test-cases for feature flag flow (#269)
zhravan 78b51b2
Merge branch 'feat/develop' of github.com:raghavyuva/nixopus
zhravan 6e4866e
docs: details on migrations
zhravan 8427de8
Merge pull request #5 from shravan20/migration-docs
zhravan 78615ae
docs: details on migrations
zhravan 7a055b4
Merge pull request #6 from shravan20/migration-docs
zhravan 7384776
Merge branch 'feat/develop' into feat/multiple-terminal-sessions
raghavyuva 04c5999
Merge pull request #263 from raghavyuva/feat/multiple-terminal-sessions
raghavyuva 4c19fd0
Merge pull request #271 from shravan20/master
raghavyuva cf111d8
feat: nixopus cli project init and add link for cli documentation
raghavyuva 4a98729
refactor: folder structure organization
raghavyuva 0196a65
fix: add EOL
raghavyuva e28a484
chore: address review comments
raghavyuva 2b5c373
chore: add EOL to makefile
raghavyuva 23e502f
feat: preflight checks for port availability
raghavyuva 5a525b0
fix: parallel process port checking
raghavyuva a4810ce
test-cases: E2E for `deploy` flow (#275)
zhravan e159b2a
feat: cli command for checking dependency on a system (#276)
raghavyuva bb9521f
feat : service management CLI command (#283)
raghavyuva ee51030
fix: add missing dependency requests to project toml deps array
raghavyuva 21da783
style: format cli with black
raghavyuva 9d19af0
Merge branch 'feat/develop' into feat/cli
raghavyuva efcd993
chore: add debug logs for conf command
raghavyuva 96c9e8b
feat: add config yaml file
raghavyuva 061f7a2
fix: remove KEY, VALUE args and make it as KEY=VALUE for set command
raghavyuva ac5de3e
chore: support config loading instead of hardcoding configuration val…
raghavyuva 2e8e1d5
fix: test assertion for backup message
raghavyuva ec3c2ea
feat : (#288) cli uses helpers/config.yaml for frequently moving part…
raghavyuva bbe2efe
fix: (#289) issues with failing tests because of import issues and er…
raghavyuva 38eb294
feat:(#290) command to install required dependencies for nixopus
raghavyuva d9504dc
fix: remove redis from the list of required dependencies list
raghavyuva d9a115a
fix: remove redis from the list of required dependencies list
raghavyuva dddb0a5
feat: add function to get the ip address of the server
raghavyuva 54a6adb
feat : nixopus cli intro command (#293)
raghavyuva bd55c54
feat: (#294) centralized timeout operation wrapper for commands
raghavyuva 9fd4d6e
feat : verbose mode for commands (#295)
raghavyuva 1b39e4b
feat : consistent output formatting (#298)
raghavyuva 2644cb3
fix: merge conflict reolution issues
raghavyuva 7e789c5
feat: wip installation command integration
raghavyuva 5f1a633
fix: environment variable updating in installation
raghavyuva dad2235
fix: install flow
raghavyuva 01131a9
feat: build and install binary and wheels for nixopus cli installation
raghavyuva caf104e
fix: failing unit tests
raghavyuva 4672503
fix: move out util logics from install and preflight runner
raghavyuva ae39561
feat: CLI Docs (#299)
raghavyuva bc34309
test: add unit test files for utils
raghavyuva 6040179
feat: auto generated cli reference from typer to docs
raghavyuva 4a42ec2
chore: update cli main to add test command only in dev environment
raghavyuva 33d739f
fix: cli performance issue and startup speed improvement (#300)
zhravan 627cbbe
feat: (#292) Add `conflict` command to differentiate versioning
zhravan 5ee2e59
chores: (#306) move out test cases files to separate test folder | i…
zhravan 193a43e
fix: login fails with ip address deployment (#314)
raghavyuva eb649d4
feat: (#305) dynamic theme switcher palette and fix inconsistencies …
raghavyuva a2bf21a
feat: cli release workflow (#302)
raghavyuva fde6a14
chore: cleanup unused files (#316)
raghavyuva 2150586
chore: update readme.md to remove certain sections (#310)
raghavyuva fbbe65f
fix: domain title appears twice in domains page (#309)
raghavyuva 9c5093b
Merge branch 'master' into feat/cli
raghavyuva File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package controller | ||
|
||
import "github.com/raghavyuva/nixopus-api/internal/features/domain/types" | ||
|
||
func isInvalidDomainError(err error) bool { | ||
switch err { | ||
case types.ErrInvalidDomainID, | ||
types.ErrMissingDomainID, | ||
types.ErrDomainNameInvalid, | ||
types.ErrDomainNameTooLong, | ||
types.ErrDomainNameTooShort, | ||
types.ErrMissingDomainName: | ||
return true | ||
default: | ||
return false | ||
} | ||
} | ||
|
||
func isPermissionError(err error) bool { | ||
switch err { | ||
case types.ErrUserDoesNotBelongToOrganization, | ||
types.ErrPermissionDenied: | ||
return true | ||
default: | ||
return false | ||
} | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.