This repository has been archived by the owner on Jan 20, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[UPDATE] migrate all functions to the wrapper
- drop unused code - clean up code
- Loading branch information
Showing
13 changed files
with
65 additions
and
417 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,16 @@ | ||
package v3 | ||
|
||
import ( | ||
"github.com/happytobi/cf-puppeteer/arguments" | ||
"github.com/happytobi/cf-puppeteer/ui" | ||
) | ||
|
||
func (resource *ResourcesData) AssignAppManifest(parsedArguments *arguments.ParserArguments) (err error) { | ||
args := []string{"v3-apply-manifest", "-f", parsedArguments.ManifestPath} | ||
func (resource *ResourcesData) AssignAppManifest(manifestPath string) (err error) { | ||
args := []string{"v3-apply-manifest", "-f", manifestPath} | ||
|
||
ui.Say("apply manifest file") | ||
err = resource.Executor.Execute(args) | ||
if err != nil { | ||
ui.Failed("could not read manifest from path %s error: %s", parsedArguments.ManifestPath, err) | ||
ui.Failed("could not read manifest from path %s error: %s", manifestPath, err) | ||
return err | ||
} | ||
|
||
ui.Ok() | ||
|
||
return nil | ||
} |
Oops, something went wrong.