Update metadataPath using set-manifest in cli

* Added metatada-path as a flag to set-manifest

Change-Id: Id26f20c4a6350b4aae34da850bbfcab42cbe9f21
This commit is contained in:
Sirajudeen
2020-09-24 14:28:30 +00:00
parent 29088b7b42
commit 2769c62c8a
7 changed files with 83 additions and 61 deletions

View File

@@ -515,6 +515,9 @@ func (c *Config) ModifyManifest(manifest *Manifest, theManifest *ManifestOptions
if theManifest.TargetPath != "" {
manifest.TargetPath = theManifest.TargetPath
}
if theManifest.MetadataPath != "" {
manifest.MetadataPath = theManifest.MetadataPath
}
// There is no repository details to be updated
if theManifest.RepoName == "" {
return nil

View File

@@ -33,17 +33,18 @@ type ContextOptions struct {
// ManifestOptions holds all configurable options for manifest configuration
type ManifestOptions struct {
Name string
RepoName string
URL string
Branch string
CommitHash string
Tag string
RemoteRef string
Force bool
IsPrimary bool
SubPath string
TargetPath string
Name string
RepoName string
URL string
Branch string
CommitHash string
Tag string
RemoteRef string
Force bool
IsPrimary bool
SubPath string
TargetPath string
MetadataPath string
}
// EncryptionConfigOptions holds all configurable options for encryption configuration