Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
wordsmith flags, multiwatch files, add --create-module flag
- Loading branch information
Showing
10 changed files
with
99 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,15 @@ | ||
package flags | ||
|
||
type GenFlagpole struct { | ||
Stats bool | ||
Generator []string | ||
Template []string | ||
Partial []string | ||
Diff3 bool | ||
Watch bool | ||
WatchGlobs []string | ||
WatchXcue []string | ||
Stats bool | ||
Generator []string | ||
Template []string | ||
Partial []string | ||
Diff3 bool | ||
Watch bool | ||
WatchGlobs []string | ||
WatchXcue []string | ||
CreateModule string | ||
} | ||
|
||
var GenFlags GenFlagpole |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,15 @@ | ||
package flags | ||
|
||
type GenFlagpole struct { | ||
Stats bool | ||
Generator []string | ||
Template []string | ||
Partial []string | ||
Diff3 bool | ||
Watch bool | ||
WatchGlobs []string | ||
WatchXcue []string | ||
Stats bool | ||
Generator []string | ||
Template []string | ||
Partial []string | ||
Diff3 bool | ||
Watch bool | ||
WatchGlobs []string | ||
WatchXcue []string | ||
CreateModule string | ||
} | ||
|
||
var GenFlags GenFlagpole |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package foo | ||
{{ range .users }} | ||
// function {{ camelT .name }} pretend time | ||
func {{ camelT .name }}( {{ title .role }} int ) error { | ||
fmt.Println("hey {{ .NAME }}!!") | ||
|
||
return nil | ||
} | ||
{{ end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,10 @@ | ||
// hallo!!! | ||
NAME: AAAH | ||
name: aaah | ||
role: cat | ||
|
||
|
||
|
||
// hallo!!! | ||
NAME: ALICE | ||
name: alice | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
package foo | ||
|
||
// function Aaah pretend time | ||
func Aaah( Cat int ) error { | ||
fmt.Println("hey AAAH!!") | ||
|
||
return nil | ||
} | ||
|
||
// function Alice pretend time | ||
func Alice( User int ) error { | ||
fmt.Println("hey ALICE!!") | ||
|
||
// if in wonderland? | ||
// if white rabbit? | ||
|
||
return nil | ||
} | ||
|
||
// function Bob pretend time | ||
func Bob( User int ) error { | ||
fmt.Println("hey BOB!!") | ||
|
||
return nil | ||
} | ||
|
||
// function Cow pretend time | ||
func Cow( Mooer int ) error { | ||
fmt.Println("hey COW!!") | ||
|
||
return nil | ||
} | ||
|
||
// function Darth pretend time | ||
func Darth( Evil int ) error { | ||
fmt.Println("hey DARTH!!") | ||
|
||
return nil | ||
} | ||
|
||
// function Mary pretend time | ||
func Mary( Admin int ) error { | ||
fmt.Println("hey MARY!!") | ||
|
||
return nil | ||
} |