github.com/jfrog/jfrog-cli-go@v1.22.1-0.20200318093948-4826ef344ffd/artifactory/commands/npm/LegacyInstall.go (about)

     1  package npm
     2  
     3  type NpmLegacyInstallCommand struct {
     4  	commandName string
     5  	*NpmCommandArgs
     6  }
     7  
     8  func NewNpmLegacyInstallCommand() *NpmLegacyInstallCommand {
     9  	return &NpmLegacyInstallCommand{NpmCommandArgs: NewNpmCommandArgs("install"), commandName: "rt_npm_legacy_install"}
    10  }
    11  
    12  func NewNpmLegacyCiCommand() *NpmLegacyInstallCommand {
    13  	return &NpmLegacyInstallCommand{NpmCommandArgs: NewNpmCommandArgs("ci"), commandName: "rt_npm_ci"}
    14  }
    15  
    16  func (nlic *NpmLegacyInstallCommand) Run() error {
    17  	return nlic.run()
    18  }
    19  
    20  func (nlic *NpmLegacyInstallCommand) CommandName() string {
    21  	return nlic.commandName
    22  }