github.com/taubyte/tau-cli@v0.1.13-0.20240326000942-487f0d57edfc/cli/commands/resources/library/edit.go (about)

     1  package library
     2  
     3  import (
     4  	"github.com/taubyte/tau-cli/cli/common"
     5  	"github.com/taubyte/tau-cli/flags"
     6  	"github.com/urfave/cli/v2"
     7  )
     8  
     9  func (l link) Edit() common.Command {
    10  	return common.Create(
    11  		&cli.Command{
    12  			Flags: flags.Combine(
    13  				flags.Description,
    14  				flags.Tags,
    15  
    16  				flags.RepositoryName,
    17  				flags.RepositoryId,
    18  
    19  				flags.Branch,
    20  				flags.Path,
    21  
    22  				flags.Clone,
    23  				flags.EmbedToken,
    24  
    25  				// TODO maybe, handle generating a new repo
    26  
    27  				flags.Yes,
    28  			),
    29  			Action: l.cmd.Edit,
    30  		},
    31  	)
    32  }