Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat: add autostart/autostop show, show autostart/autostop schedule in ls output#1436

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
johnstcn merged 2 commits intomainfromcj/gh-1431/cli-show-autostart-autostop
May 13, 2022

Conversation

johnstcn
Copy link
Member

@johnstcnjohnstcn commentedMay 13, 2022
edited
Loading

Slipped my mind to do this before 🤦

Closes#1431

@johnstcnjohnstcn requested a review froma teamMay 13, 2022 18:33
@johnstcnjohnstcn self-assigned thisMay 13, 2022
@codecov
Copy link

codecovbot commentedMay 13, 2022
edited
Loading

Codecov Report

Merging#1436 (4f994cb) intomain (9410237) willdecrease coverage by0.22%.
The diff coverage is47.50%.

@@            Coverage Diff             @@##             main    #1436      +/-   ##==========================================- Coverage   67.26%   67.04%   -0.23%==========================================  Files         288      284       -4       Lines       19422    19297     -125       Branches      244      244              ==========================================- Hits        13065    12938     -127- Misses       5019     5020       +1- Partials     1338     1339       +1
FlagCoverage Δ
unittest-go-macos-latest54.28% <47.50%> (+0.16%)⬆️
unittest-go-postgres-65.52% <47.50%> (-0.23%)⬇️
unittest-go-ubuntu-latest56.49% <47.50%> (-0.12%)⬇️
unittest-go-windows-2022?
unittest-js75.26% <ø> (ø)
Impacted FilesCoverage Δ
cli/autostart.go66.37% <43.75%> (-8.63%)⬇️
cli/list.go46.42% <45.45%> (-0.64%)⬇️
cli/autostop.go66.37% <51.35%> (-8.32%)⬇️
provisionersdk/serve.go35.13% <0.00%> (-8.11%)⬇️
cli/configssh.go62.58% <0.00%> (-6.48%)⬇️
pty/ptytest/ptytest.go86.95% <0.00%> (-4.35%)⬇️
cli/templateinit.go58.62% <0.00%> (-3.45%)⬇️
peer/conn.go78.86% <0.00%> (-2.71%)⬇️
coderd/workspaceagents.go56.04% <0.00%> (-1.87%)⬇️
agent/agent.go65.28% <0.00%> (-1.86%)⬇️
... and9 more

Continue to review full report at Codecov.

Legend -Click here to learn more
Δ = absolute <relative> (impact),ø = not affected,? = missing data
Powered byCodecov. Last update9410237...4f994cb. Read thecomment docs.

Copy link
Contributor

@dwahlerdwahler left a comment

Choose a reason for hiding this comment

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

Couple of minor issues with the message formatting, but other than that LGTM.

}

if workspace.AutostartSchedule == "" {
_, _ = fmt.Fprintf(cmd.OutOrStdout(), "not enabled")
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this and some of the otherfmt.Fprintf calls inautostart.go andautostop.go are missing trailing newlines.

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

whoops!

return nil
}

_, _ = fmt.Fprintf(cmd.OutOrStdout(), "\nschedule: %s\nnext: %s\n", workspace.AutostartSchedule, validSchedule.Next(time.Now()))
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there any particular reason for printing an extra blank line at the beginning?

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

Probably because I yanked the line from somewhere else and forgot to clean it up 🙃

@johnstcnjohnstcnenabled auto-merge (squash)May 13, 2022 18:49
@johnstcnjohnstcn merged commitf970829 intomainMay 13, 2022
@johnstcnjohnstcn deleted the cj/gh-1431/cli-show-autostart-autostop branchMay 13, 2022 19:03
@missknissmisskniss added this to theV2 Beta milestoneMay 15, 2022
kylecarbs pushed a commit that referenced this pull requestJun 10, 2022
…n ls output (#1436)* feat: add autostart/autostop show, show autostart/autostop schedule in ls output
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@dwahlerdwahlerdwahler approved these changes

Assignees

@johnstcnjohnstcn

Labels
None yet
Projects
None yet
Milestone
V2 Beta
Development

Successfully merging this pull request may close these issues.

cli: No way to view auto start after it's set
3 participants
@johnstcn@dwahler@misskniss

[8]ページ先頭

©2009-2025 Movatter.jp