code: func WriteRuntimeMetadata(metadataDir string, metadata *clitypes.RuntimeMetadata) error {
  	if metadataDir == "" {
  		metadataDir = defaultRuntimeMetadataDir
  	}
  	filename := filepath.Join(metadataDir, clitypes.RuntimeMetadataName+".json")
  
  	data, err := json.Marshal(metadata)
  	if err != nil {
  		return err
  	}
  
  	os.Remove(filename)
  	return ioutil.WriteFile(filename, data, 0644)
  }
docs: // WriteRuntimeMetadata stores the metadata on the local system