mirror of
https://github.com/grdl/git-get.git
synced 2026-02-05 02:04:41 +00:00
Update readme, add some todos, add example svg
This commit is contained in:
@@ -16,6 +16,8 @@ type GetCfg struct {
|
||||
|
||||
// Get executes the "git get" command.
|
||||
func Get(c *GetCfg) error {
|
||||
// TODO: show something when no args
|
||||
|
||||
if c.URL != "" {
|
||||
return cloneSingleRepo(c)
|
||||
}
|
||||
|
||||
@@ -51,6 +51,7 @@ func List(c *ListCfg) error {
|
||||
case cfg.OutDump:
|
||||
printer = &print.DumpPrinter{}
|
||||
default:
|
||||
// TODO: fix
|
||||
return fmt.Errorf("invalid --out flag; allowed values: %v", []string{cfg.OutFlat, cfg.OutTree, cfg.OutSmart})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user