-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(cmd/scripts/nginx_log_generator): Create `slu scripts nginx-log-…
…generator`
- Loading branch information
1 parent
9bd031a
commit e753107
Showing
2 changed files
with
22 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package download | ||
|
||
import ( | ||
parent_cmd "github.com/sikalabs/slu/cmd/scripts" | ||
"github.com/sikalabs/slu/utils/3rdparty/nginx_log_generator" | ||
"github.com/spf13/cobra" | ||
) | ||
|
||
var Cmd = &cobra.Command{ | ||
Use: "nginx-log-generator", | ||
Aliases: []string{"nlg"}, | ||
Short: "Nginx log generator (from kscarlett/nginx-log-generator)", | ||
Args: cobra.NoArgs, | ||
Run: func(c *cobra.Command, args []string) { | ||
nginx_log_generator.NginxLogGenerator() | ||
}, | ||
} | ||
|
||
func init() { | ||
parent_cmd.Cmd.AddCommand(Cmd) | ||
} |