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

Use a file to specify the chronicle artifact prefix #217

Merged
merged 2 commits into from
Aug 21, 2019
Merged

Conversation

tdmanv
Copy link
Contributor

@tdmanv tdmanv commented Aug 20, 2019

Change Overview

Pull request type

Please check the type of change your PR introduces:

  • Work in Progress
  • Refactoring (no functional changes, no api changes)
  • Trival/Minor
  • Bugfix
  • Feature
  • Documentation

Issues

#216

Test Plan

/go/src/github.com/kanisterio/kanister # go run -v ./cmd/kando/main.go chronicle push
Error: requires at least 1 arg(s), only received 0
Usage:
  kando chronicle push <command> [flags]

Flags:
  -s, --artifact-path string   Specify a file that contains an object store suffix (optional)
  -e, --env-dir string         Get environment variables from a envdir style directory(optional)
  -f, --frequency duration     The Frequency to push to object storage  (default 1m0s)
  -h, --help                   help for push
  -p, --profile-path string    Path to a Profile as a JSON string (required)

Global Flags:
  -v, --verbosity string   Log level (debug, info, warn, error, fatal, panic) (default "warning")

ERRO[0000] requires at least 1 arg(s), only received 0
exit status 1
  • Manual
  • Unit test
  • E2E

@tdmanv tdmanv requested a review from pavannd1 August 20, 2019 01:06
@@ -30,8 +30,9 @@ func newChroniclePushCommand() *cobra.Command {
}
cmd.PersistentFlags().StringVarP(&params.ProfilePath, profilePathFlagName, "p", "", "Path to a Profile as a JSON string (required)")
cmd.MarkPersistentFlagRequired(profilePathFlagName)
cmd.PersistentFlags().StringVarP(&params.ArtifactPath, artifactPathFlagName, "s", "", "Specify a path suffix (optional)")
cmd.PersistentFlags().StringVarP(&params.EnvDir, envDirFlagName, "e", "", "Get environment variables from a (optional)")
cmd.PersistentFlags().StringVarP(&params.ArtifactFile, artifactPathFlagName, "s", "", "Specify a file that contains an object store suffix (optional)")
Copy link
Contributor

Choose a reason for hiding this comment

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

[minor] Remove optional

pkg/kando/chronicle_push.go Outdated Show resolved Hide resolved
@tdmanv tdmanv merged commit 809a5d0 into master Aug 21, 2019
@tdmanv tdmanv deleted the chron-art-file branch August 21, 2019 00:41
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.

None yet

2 participants