-
Notifications
You must be signed in to change notification settings - Fork 61
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(cmd): impl ormb models command #172
Conversation
4522543
to
1c1eefe
Compare
pkg/oras/client.go
Outdated
for _, ref := range refs { | ||
timeDiff := time.Now().Sub(ref.CreatedAt) | ||
timeShow := "" | ||
if timeDiff.Hours()/(365*24.0*7) > 1.0 { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we can find some third package to do the time format
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think so, but I am not found, have any suggestion?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: FogDong The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What type of PR is this?
/kind feature
What this PR does / why we need it:
impl
ormb models
command as follow:Which issue(s) this PR is related to (optional, link to 3rd issue(s)):
Fixes #169
Reference to #
Special notes for your reviewer:
/cc @FogDong
Does this PR introduce a user-facing change?: