Skip to content

Commit

Permalink
Merge pull request #5 from blacknon/develop
Browse files Browse the repository at this point in the history
v0.1.3
  • Loading branch information
blacknon authored Feb 19, 2023
2 parents 6fa36ba + 12a40bc commit 233e95b
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 11 deletions.
2 changes: 0 additions & 2 deletions client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,6 @@ func (c *Client) Get(url string) (snippet SnippetData, err error) {

snippet, err = sld.Client.Get(sld.Id)

fmt.Println("debug: snippet.Title: ", snippet.Title)

return
}

Expand Down
2 changes: 0 additions & 2 deletions client/gist.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,6 @@ func (g *GistClient) Get(id string) (data SnippetData, err error) {
Files: files,
}

fmt.Println("debug. gist description:", data.Title)

return
}

Expand Down
2 changes: 1 addition & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import (
var App = &cli.App{
Name: "snipt",
Usage: "multiple remote platform snippet manager.",
Version: "0.1.2",
Version: "0.1.3",
ErrWriter: ioutil.Discard,

// Flags
Expand Down
6 changes: 0 additions & 6 deletions cmd/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,15 +95,11 @@ func cmdActionUpdate(c *cli.Context) (err error) {
return err
}

fmt.Println("- 1. title: ", snippetData.Title)

// Get and Set title
if title != "" {
snippetData.Title = title
}

fmt.Println("- 2. title: ", snippetData.Title)

// update visibility
if c.Bool("visibility") {
// Get platorm visibility list
Expand Down Expand Up @@ -134,8 +130,6 @@ func cmdActionUpdate(c *cli.Context) (err error) {
}
snippetData.Files = files

fmt.Println("- 3. title: ", snippetData.Title)

// update
rawURLs, err := cl.Update(url, snippetData)
if err != nil {
Expand Down

0 comments on commit 233e95b

Please sign in to comment.