Skip to content

Commit

Permalink
feat(cmd/ondrejsika/iceland): Add commnad which prints random image f…
Browse files Browse the repository at this point in the history
…rom Iceland to terminal
  • Loading branch information
ondrejsika committed Nov 30, 2023
1 parent a652fce commit ecf154d
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
1 change: 1 addition & 0 deletions cmd/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ import (
_ "github.com/sikalabs/slu/cmd/ondrejsika/dela"
_ "github.com/sikalabs/slu/cmd/ondrejsika/desktop_cleanup"
_ "github.com/sikalabs/slu/cmd/ondrejsika/free_space"
_ "github.com/sikalabs/slu/cmd/ondrejsika/iceland"
_ "github.com/sikalabs/slu/cmd/ondrejsika/large_desktop_files"
_ "github.com/sikalabs/slu/cmd/ondrejsika/setup_git"
_ "github.com/sikalabs/slu/cmd/postgres"
Expand Down
22 changes: 22 additions & 0 deletions cmd/ondrejsika/iceland/iceland.go
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)
}

0 comments on commit ecf154d

Please sign in to comment.