t

commit af74a1e96e8cff7bacbe0f20e38160edc71b7ac3

Author: Pedro Lucas Porcellis <pedrolucasporcellis@gmail.com>

Remove full path from git commit message

And remove some pt-br log messages

 src/main.go | 11 +++++++----


diff --git a/src/main.go b/src/main.go
index caf294934b5e4d2917b746fc252bbe11c1a93e5e..66deb3ebc74ded85f356f8798f306b07512497e1 100644
--- a/src/main.go
+++ b/src/main.go
@@ -8,10 +8,14 @@   "os/exec"
   "time"
 )
 
+var noteName string
+
 func generateNoteFileTitle() string {
   currentTime := time.Now()
 
-  return currentTime.Format("2006-01-02T15:04:05Z07:00")
+  noteName = currentTime.Format("2006-01-02T15:04:05Z07:00")
+  
+  return noteName
 }
 
 func createNoteFile() (string, error) {
@@ -119,7 +123,7 @@   if addingError != nil {
     return addingError
   }
 
-  commitMessage := fmt.Sprintf("Added note '%s'", fileName)
+  commitMessage := fmt.Sprintf("Added note '%s'", noteName)
 
   cmd := exec.Command("git", "-C", notesDirectory(), "commit", "-am", commitMessage)
   cmd.Env = append(os.Environ())
@@ -130,7 +134,6 @@
   err := cmd.Run()
 
   if err != nil {
-    fmt.Println("Deu treta ao commitar")
     return err
   } else {
     return nil
@@ -153,7 +156,7 @@
   fmt.Println("Syncing your notes...")
 
   if err := isAGitRepository(); err != nil {
-    fmt.Println("Fudeu bahea")
+    fmt.Println("This is not a valid repository")
   } else {
     if err := syncNotes(); err != nil {
       fmt.Println("Could not sync notes")