-
-
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/ondrejsika/iceland): Add commnad which prints random image f…
…rom Iceland to terminal
- Loading branch information
1 parent
a652fce
commit ecf154d
Showing
2 changed files
with
23 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,22 @@ | ||
package iceland | ||
|
||
import ( | ||
parentcmd "github.com/sikalabs/slu/cmd/ondrejsika" | ||
"github.com/sikalabs/slu/lib/printiceland" | ||
"github.com/spf13/cobra" | ||
|
||
_ "image/jpeg" | ||
) | ||
|
||
var Cmd = &cobra.Command{ | ||
Use: "iceland", | ||
Short: "Print picture from Iceland to terminal", | ||
Args: cobra.NoArgs, | ||
Run: func(c *cobra.Command, args []string) { | ||
printiceland.PrintRadomIcelandPhoto() | ||
}, | ||
} | ||
|
||
func init() { | ||
parentcmd.Cmd.AddCommand(Cmd) | ||
} |