From 578305b3b620d34a8612f59106eff7ea04607ef0 Mon Sep 17 00:00:00 2001 From: Don Date: Mon, 9 Sep 2019 17:35:43 -0700 Subject: [PATCH] Cleanup --- pkg/plugin/types.go | 12 ------------ pkg/urfave/urfave.go | 34 +++++++++++++++++----------------- 2 files changed, 17 insertions(+), 29 deletions(-) diff --git a/pkg/plugin/types.go b/pkg/plugin/types.go index 64c6eed..795e544 100644 --- a/pkg/plugin/types.go +++ b/pkg/plugin/types.go @@ -110,52 +110,40 @@ type ( Stage struct { // Arch is the platform architecture of the current build stage. Arch string - // DependsOn is a list of dependencies for the current build stage. DependsOn []string - // Finished is the unix timestamp for when the pipeline is finished. // // A running pipleine cannot have a finish timestamp, therefore, the // system aways sets this value to the current timestamp. Finished time.Time - // Kind is the kind of resource being executed. // // This value is sourced from the `kind` attribute in the yaml // configuration file Kind string - // Machine provides the name of the host machine on which the build // stage is currently running. Machine string - // Name is the name for the current running build stage. Name string - // Number is the stage number for the current running build stage. Number int - // OS is the target operating system for the current build stage. OS string - // Started is the unix timestamp for when a build stage was started by // the runner. Started time.Time - // Status is the status for the current running build stage. // // If all of the stage's steps are passing, the status defaults to // success. Status string - // Type is the type of resource being executed. Type string - // Variant is the target architecture variant for the current build // stage. Variant string - // Version is OS version for the current build stage. Version string } diff --git a/pkg/urfave/urfave.go b/pkg/urfave/urfave.go index 2977647..b6b0a86 100644 --- a/pkg/urfave/urfave.go +++ b/pkg/urfave/urfave.go @@ -195,23 +195,23 @@ func BuildFromContext(ctx *cli.Context) plugin.Build { //--------------------------------------------------------------------- const ( - // RepoDefaultBranchFlag corresponds to Repo.DefaultBranch. + // RepoDefaultBranchFlag corresponds to plugin.Repo.DefaultBranch. RepoDefaultBranchFlag = "repo.branch" - // RepoFullNameFlag corresponds to Repo.FullName. + // RepoFullNameFlag corresponds to plugin.Repo.FullName. RepoFullNameFlag = "repo.full-name" - // RepoLinkFlag corresponds to Repo.Link. + // RepoLinkFlag corresponds to plugin.Repo.Link. RepoLinkFlag = "repo.link" - // RepoNameFlag corresponds to Repo.Name + // RepoNameFlag corresponds to plugin.Repo.Name RepoNameFlag = "repo.name" - // RepoOwnerFlag corresponds to Repo.Owner. + // RepoOwnerFlag corresponds to plugin.Repo.Owner. RepoOwnerFlag = "repo.owner" - // RepoPrivateFlag corresponds to Repo.Private. + // RepoPrivateFlag corresponds to plugin.Repo.Private. RepoPrivateFlag = "repo.private" - // RepoRemoteURLFlag corresponds to Repo.RemoteURL. + // RepoRemoteURLFlag corresponds to plugin.Repo.RemoteURL. RepoRemoteURLFlag = "repo.remote-url" - // RepoSCMFlag corresponds to Repo.SCM. + // RepoSCMFlag corresponds to plugin.Repo.SCM. RepoSCMFlag = "repo.scm" - // RepoVisibilityFlag corresponds to Repo.Visbility. + // RepoVisibilityFlag corresponds to plugin.Repo.Visbility. RepoVisibilityFlag = "repo.visibility" ) @@ -576,21 +576,21 @@ func StepFromContext(ctx *cli.Context) plugin.Step { //--------------------------------------------------------------------- const ( - // SemVerBuildFlag corresponds to SemVer.Build. + // SemVerBuildFlag corresponds to plugin.SemVer.Build. SemVerBuildFlag = "semver.build" - // SemVerErrorFlag corresponds to SemVer.Error. + // SemVerErrorFlag corresponds to plugin.SemVer.Error. SemVerErrorFlag = "semver.error" - // SemVerMajorFlag corresponds to SemVer.Major. + // SemVerMajorFlag corresponds to plugin.SemVer.Major. SemVerMajorFlag = "semver.major" - // SemVerMinorFlag corresponds to SemVer.Minor. + // SemVerMinorFlag corresponds to plugin.SemVer.Minor. SemVerMinorFlag = "semver.minor" - // SemVerPatchFlag corresponds to SemVer.Patch. + // SemVerPatchFlag corresponds to plugin.SemVer.Patch. SemVerPatchFlag = "semver.patch" - // SemVerPrereleaseFlag corresponds to SemVer.Prerelease + // SemVerPrereleaseFlag corresponds to plugin.SemVer.Prerelease SemVerPrereleaseFlag = "semver.prerelease" - // SemVerShortFlag corresponds to SemVer.Short. + // SemVerShortFlag corresponds to plugin.SemVer.Short. SemVerShortFlag = "semver.short" - // SemVerVersionFlag corresponds to SemVer.Version + // SemVerVersionFlag corresponds to plugin.SemVer.Version SemVerVersionFlag = "semver.version" )