Class Version
java.lang.Object
org.springframework.shell.standard.AbstractShellComponent
org.springframework.shell.standard.commands.Version
- All Implemented Interfaces:
org.springframework.beans.factory.Aware
,org.springframework.beans.factory.InitializingBean
,org.springframework.context.ApplicationContextAware
,org.springframework.context.ResourceLoaderAware
Command to list version and other build related infos.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
Marker interface used in auto-config. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
setBuildProperties
(org.springframework.boot.info.BuildProperties buildProperties) void
setGitProperties
(org.springframework.boot.info.GitProperties gitProperties) void
setShowBuildArtifact
(boolean showBuildArtifact) void
setShowBuildGroup
(boolean showBuildGroup) void
setShowBuildName
(boolean showBuildName) void
setShowBuildTime
(boolean showBuildTime) void
setShowBuildVersion
(boolean showBuildVersion) void
setShowGitBranch
(boolean showGitBranch) void
setShowGitCommitId
(boolean showGitCommitId) void
setShowGitCommitTime
(boolean showGitCommitTime) void
setShowGitShortCommitId
(boolean showGitShortCommitId) void
setTemplate
(String template) org.jline.utils.AttributedString
version()
Methods inherited from class org.springframework.shell.standard.AbstractShellComponent
afterPropertiesSet, getApplicationContext, getCommandCatalog, getCompletionResolver, getResourceLoader, getShell, getTemplateExecutor, getTerminal, getThemeResolver, setApplicationContext, setResourceLoader
-
Constructor Details
-
Version
-
-
Method Details
-
version
@ShellMethod(key="version", value="Show version info") public org.jline.utils.AttributedString version() -
setBuildProperties
public void setBuildProperties(org.springframework.boot.info.BuildProperties buildProperties) -
setGitProperties
public void setGitProperties(org.springframework.boot.info.GitProperties gitProperties) -
setTemplate
-
setShowBuildGroup
public void setShowBuildGroup(boolean showBuildGroup) -
setShowBuildArtifact
public void setShowBuildArtifact(boolean showBuildArtifact) -
setShowBuildName
public void setShowBuildName(boolean showBuildName) -
setShowBuildVersion
public void setShowBuildVersion(boolean showBuildVersion) -
setShowBuildTime
public void setShowBuildTime(boolean showBuildTime) -
setShowGitBranch
public void setShowGitBranch(boolean showGitBranch) -
setShowGitCommitId
public void setShowGitCommitId(boolean showGitCommitId) -
setShowGitShortCommitId
public void setShowGitShortCommitId(boolean showGitShortCommitId) -
setShowGitCommitTime
public void setShowGitCommitTime(boolean showGitCommitTime)
-