-
-
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/dela): Create command
slu ondrejsika dela
which…
… prints photo of my dog Dela to terminal <3
- Loading branch information
1 parent
48d396e
commit 0b0c3fe
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 large_desktop_files | ||
|
||
import ( | ||
parentcmd "github.com/sikalabs/slu/cmd/ondrejsika" | ||
"github.com/sikalabs/slu/lib/printdela" | ||
"github.com/spf13/cobra" | ||
|
||
_ "image/jpeg" | ||
) | ||
|
||
var Cmd = &cobra.Command{ | ||
Use: "dela", | ||
Short: "Print picture of Dela to terminal", | ||
Args: cobra.NoArgs, | ||
Run: func(c *cobra.Command, args []string) { | ||
printdela.PrintDela() | ||
}, | ||
} | ||
|
||
func init() { | ||
parentcmd.Cmd.AddCommand(Cmd) | ||
} |