Skip to content

fix/shell-display-how-to-quit#3635

Merged
remyleone merged 1 commit intoscaleway:masterfrom
Laure-di:fix/shell-display-how-to-quit
Feb 7, 2024
Merged

fix/shell-display-how-to-quit#3635
remyleone merged 1 commit intoscaleway:masterfrom
Laure-di:fix/shell-display-how-to-quit

Conversation

@Laure-di
Copy link
Contributor

@Laure-di Laure-di commented Feb 5, 2024

close #3621

@codecov-commenter
Copy link

codecov-commenter commented Feb 5, 2024

Codecov Report

Attention: 6 lines in your changes are missing coverage. Please review.

Comparison is base (e110d2d) 75.86% compared to head (bde7715) 75.81%.
Report is 18 commits behind head on master.

Files Patch % Lines
internal/core/shell.go 0.00% 6 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3635      +/-   ##
==========================================
- Coverage   75.86%   75.81%   -0.05%     
==========================================
  Files         180      180              
  Lines       41066    41229     +163     
==========================================
+ Hits        31153    31258     +105     
- Misses       8777     8830      +53     
- Partials     1136     1141       +5     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@Laure-di Laure-di force-pushed the fix/shell-display-how-to-quit branch from aa69979 to 94af800 Compare February 5, 2024 13:21
@Codelax
Copy link
Member

Codelax commented Feb 5, 2024

There is an issue using this PR's branch:

> scw -h
 - Type Ctrl+d to quit.
USAGE:
  scw <command>

AVAILABLE COMMANDS:
...

@Laure-di Laure-di force-pushed the fix/shell-display-how-to-quit branch from 94af800 to c1e6f9e Compare February 5, 2024 14:12
meta.Commands.Remove("shell", "")

executor := shellExecutor(rootCmd, printer, meta)
fmt.Println("- Type Ctrl+d to quit.")
Copy link
Member

Choose a reason for hiding this comment

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

Could you extract this to a variable?
That way we will be able to add more content and make it more welcoming.
Maybe adding some colors in addition down the road :)

AllowAnonymousClient: false,
ArgsType: reflect.TypeOf(args.RawArgs{}),
Run: func(ctx context.Context, argsI interface{}) (interface{}, error) {
fmt.Println(" - Type Ctrl+d to quit.")
Copy link
Member

Choose a reason for hiding this comment

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

There is no need for both prints. This one can go as this is never called

@Laure-di Laure-di force-pushed the fix/shell-display-how-to-quit branch 2 times, most recently from 16bb381 to bde7715 Compare February 7, 2024 13:23
@Laure-di Laure-di force-pushed the fix/shell-display-how-to-quit branch from bde7715 to 4af757e Compare February 7, 2024 13:53
@remyleone remyleone added this pull request to the merge queue Feb 7, 2024
Merged via the queue into scaleway:master with commit 2a47627 Feb 7, 2024
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.

shell: display how to quit

4 participants