Update metadataPath using set-manifest in cli
* Added metatada-path as a flag to set-manifest Change-Id: Id26f20c4a6350b4aae34da850bbfcab42cbe9f21
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user