Skip to content

Commit

Permalink
💊✔️ Fixed misspells
Browse files Browse the repository at this point in the history
 Issues related:
 	-> #19

 On branch devel
 Changes to be committed:
	modified:   README.md
	modified:   cmd/add.go
	modified:   cmd/add_test.go
	modified:   cmd/doc.go
	modified:   cmd/init.go
	modified:   cmd/init_test.go
	modified:   cmd/rm.go
	modified:   cmd/rm_test.go
	modified:   cmd/set_test.go
	modified:   cmd/update.go
	modified:   list.todo
  • Loading branch information
ChacaS0 committed Mar 12, 2018
1 parent 4288769 commit 2ba6d09
Show file tree
Hide file tree
Showing 11 changed files with 19 additions and 20 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# <a href="https://github.com/ChacaS0/tempest" ><img src="https://image.ibb.co/c829L7/logo_v5_small.gif" width="25" height="25" /></a> TEMPest
*TEMPest is a tool to manage easily temporary folders/files*

[![Build Status](https://travis-ci.org/ChacaS0/tempest.svg?branch=master)](https://travis-ci.org/ChacaS0/tempest) [![codecov](https://codecov.io/gh/ChacaS0/tempest/branch/master/graph/badge.svg)](https://codecov.io/gh/ChacaS0/tempest) [![Codacy Badge](https://api.codacy.com/project/badge/Grade/25460f686b864a68a44f6871ec3b9ad2)](https://www.codacy.com/app/ChacaS0/tempest?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=ChacaS0/tempest&amp;utm_campaign=Badge_Grade) [![GoDoc](https://godoc.org/github.com/ChacaS0/tempest?status.svg)](https://godoc.org/github.com/ChacaS0/tempest)
[![Build Status](https://travis-ci.org/ChacaS0/tempest.svg?branch=master)](https://travis-ci.org/ChacaS0/tempest) [![codecov](https://codecov.io/gh/ChacaS0/tempest/branch/master/graph/badge.svg)](https://codecov.io/gh/ChacaS0/tempest) [![Codacy Badge](https://api.codacy.com/project/badge/Grade/25460f686b864a68a44f6871ec3b9ad2)](https://www.codacy.com/app/ChacaS0/tempest?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=ChacaS0/tempest&amp;utm_campaign=Badge_Grade) [![Go Report Card](https://goreportcard.com/badge/github.com/ChacaS0/tempest)](https://goreportcard.com/report/github.com/ChacaS0/tempest) [![GoDoc](https://godoc.org/github.com/ChacaS0/tempest?status.svg)](https://godoc.org/github.com/ChacaS0/tempest)
[![apm](https://img.shields.io/apm/l/vim-mode.svg)](https://github.com/ChacaS0/tempest/blob/master/LICENSE)
[![Donate](https://img.shields.io/badge/Donate-PayPal-green.svg)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=TQYU8BPPV5YWA) [![beta](https://img.shields.io/badge/edition-beta-ff69b4.svg)](https://github.com/ChacaS0/tempest)

Expand Down
2 changes: 1 addition & 1 deletion cmd/add.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ tempest add /tmp
Run: func(cmd *cobra.Command, args []string) {
// fmt.Println(color.HiBlueString("lol"))
if errAddLine := addLine(args); errAddLine != nil {
fmt.Println("::An error occured while adding path(s):\n", errAddLine)
fmt.Println("::An error occurred while adding path(s):\n", errAddLine)
}

},
Expand Down
4 changes: 2 additions & 2 deletions cmd/add_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func TestCheckRedondance(t *testing.T) {
{s1, s5, false, errors.New("[CONFUSION]:: Thinking there is an error, but the paths name are just looking alike")},
}

// runing tests
// running tests
for _, tst := range tests {
got := checkRedondance(tst.p1, tst.p2)
if got != tst.want {
Expand Down Expand Up @@ -81,7 +81,7 @@ func TestTreatLastChar(t *testing.T) {
{p2, w2, errors.New("[FAIL]:: Did not change when it was supposed to")},
}

// runing tests
// running tests
for _, tst := range tests {
got := TreatLastChar(tst.param)
// fmt.Println(got) // DEBUG
Expand Down
2 changes: 1 addition & 1 deletion cmd/doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ func launchDoc() {
color.HiMagenta("\nSuck it up, it's not there yet lel\n")

// // https://gist.github.com/kylelemons/1525278
// Collecting the ouput of the commands
// Collecting the output of the commands
/* var output bytes.Buffer
var stderr bytes.Buffer
Expand Down
4 changes: 2 additions & 2 deletions cmd/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ var initCmd = &cobra.Command{
Long: `Call this if it is the first time you use TEMPest or to reset the temps:
It will create a file named .tempestcf in your /home/$USER.
This file will contain the list of all the directories you wish tempest to handle as temporay directory.
This file will contain the list of all the directories you wish tempest to handle as temporary directory.
`,
Run: func(cmd *cobra.Command, args []string) {
Expand All @@ -59,7 +59,7 @@ This file will contain the list of all the directories you wish tempest to handl
// SUCCESS:
fmt.Println(greenB("::"), color.HiGreenString("You are now ready to use TEMPest."))
fmt.Println(greenB("::"), color.HiGreenString("Suggestions:"))
fmt.Println(color.HiGreenString(` Start using TEMPest right away by adding a temporay file :
fmt.Println(color.HiGreenString(` Start using TEMPest right away by adding a temporary file :
tempest add <DIRECTORY_PATH>
Or get help to add new paths:
tempest help add
Expand Down
4 changes: 2 additions & 2 deletions cmd/init_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ func TestInitializeTP(t *testing.T) {
verifyTempestcf(t, tempestcfOld)

if err = cleanTempest(t, &Tempestcf, tempestcfOld); err != nil {
t.Log("[ERROR]:: An error occured:", err)
t.Log("[ERROR]:: An error occurred:", err)
}
}

Expand Down Expand Up @@ -69,7 +69,7 @@ func TestInitializeCfFile(t *testing.T) {

// Set back to default conf and clean temp test files
if err = cleanTempest(t, &Tempestyml, tempestymlOld); err != nil {
t.Log("[ERROR]:: An error occured:", err)
t.Log("[ERROR]:: An error occurred:", err)
t.Fail()
}
viper.SetConfigFile(Tempestyml)
Expand Down
2 changes: 1 addition & 1 deletion cmd/rm.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ func rmInSlice(index int, record string, list []string) []string {
}

// Slicing an element out of the slice.
// Exmaple to take of the element at position 1:
// Example to take of the element at position 1:
// a = a[:1+copy(a[1:], a[2:])]
// listToRet := list[:index+copy(list[index:], list[index+1:])]

Expand Down
2 changes: 1 addition & 1 deletion cmd/rm_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func TestRmInSlice(t *testing.T) {
{0, "", sl2, sl22, errors.New("[FAIL]:: Can't return the nil slice, sad - int")},
}

// runing tests
// running tests
for _, tst := range tests {
got := rmInSlice(tst.i, tst.str, tst.slstr)
if !SameSlices(got, tst.want) {
Expand Down
2 changes: 1 addition & 1 deletion cmd/set_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
// func Test(t *testing.T)

// TestSetAge checks if when changing the age,
// it is stored corretly in viper.Config()
// it is stored correctly in viper.Config()
func TestSetAge(t *testing.T) {
// Current settings
currAge := viper.GetInt("duration")
Expand Down
2 changes: 1 addition & 1 deletion cmd/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ import (
var updateCmd = &cobra.Command{
Use: "update",
Short: "Updates the TEMPest tool",
Long: `Simply update the TEMPest tool. Exmaple:
Long: `Simply update the TEMPest tool. Example:
tempest update
Expand Down
13 changes: 6 additions & 7 deletions list.todo
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,15 @@ General:
✔ --> git log HEAD..origin/master --oneline @done (2/5/2018, 4:18:44 AM)
☐ [UPDATE] check if can just use ``go get -u`` now instead of pull/fetch @high
☐ OR makefile?
☐ remove (+same thing as add with ``this``)
--> Maybe based on the yellow number ?
✔ remove (+same thing as add with ``this``) @done (3/11/2018, 4:38:55 PM)
✔ list all current paths @done (2/3/2018, 6:34:34 PM)
✔ --> Bonus: there is a yellow number as the index of the line (line number) @done (2/3/2018, 6:39:28 PM)
☐ ``cd`` to a number of path for example: ``tempest cd 0``
✔ Start @critical this is the actual stuff : call purge @done (2/4/2018, 4:17:32 PM)
When adding a path check if the path exists -_- @high
[ADD] check if it ends with a separator @low
When adding a path check if the path exists -_- @high @done (3/11/2018, 4:38:49 PM)
[ADD] check if it ends with a separator @low @done (3/11/2018, 4:38:47 PM)
✔ Make my own purge @today @done (2/4/2018, 11:04:33 AM)
Iniside command ``init`` handle ~/.tempest.yaml @high
Iniside command ``init`` handle ~/.tempest.yaml @high @done (3/11/2018, 4:38:50 PM)
✔ DOC command points simply to the markdown README.md @today @done (2/4/2018, 6:48:35 PM)
✔ --> hint: use https://github.com/craigbarnes/showdown @done (2/4/2018, 6:48:41 PM)
✔ aur/showdown-git @done (2/4/2018, 6:48:34 PM)
Expand All @@ -39,9 +38,9 @@ General:
✔ use colorized logs (check paper fluo in bag) @done (2/3/2018, 6:34:39 PM)
☐ refractor helpers with color package ? @low
✔ See the current version @low @done (3/4/2018, 3:37:40 PM)
[CURRENT VERSION] [REVISION] Would be the last commit
[CURRENT VERSION] [REVISION] Would be the last commit @done (3/11/2018, 4:39:19 PM)
☐ [LATEST VERSION]
Improve visualisation of output on ``tempest start ``
Improve visualisation of output on ``tempest start `` @done (3/11/2018, 4:39:29 PM)
✔ More information when doing ``tempest update`` @today @done (2/10/2018, 12:01:48 PM)

Note:
Expand Down

0 comments on commit 2ba6d09

Please sign in to comment.