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

chore: cleanup starship-cli #538

Merged
merged 2 commits into from
Jul 30, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 8 additions & 9 deletions clients/js/packages/cli/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,6 @@ export const loadConfig = (argv: any): Config => {
} as StarshipContext;
let starship: StarshipConfig = {} as StarshipConfig;

console.log('context', context);

// Override context with command-line arguments dynamically based on StarshipContext keys
params.forEach((key) => {
if (argv[key] !== undefined) {
Expand All @@ -64,8 +62,6 @@ export const loadConfig = (argv: any): Config => {
starship = loadYaml(context.config) as StarshipConfig;
}

console.log('starship: ', starship);

return { context, starship };
};

Expand Down Expand Up @@ -97,12 +93,15 @@ Command-line Options:
Examples:
$ starship start --config ./config/two-chain.yaml
$ starship stop --config ./config/two-chain.yaml


If you want to setup starship for the first time
$ starship setup

If you want to run the deployment step by step
$ starship deploy --config ./config/two-chain.yaml
$ starship start-ports --config ./config/two-chain.yaml
$ starship stop-ports --config ./config/two-chain.yaml
$ starship stop --config ./config/two-chain.yaml
$ starship deploy --config ./config/two-chain.yaml
$ starship start-ports --config ./config/two-chain.yaml
$ starship stop-ports --config ./config/two-chain.yaml
$ starship delete --config ./config/two-chain.yaml

Additional Help:
$ starship help Display this help information.
Expand Down