-
-
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/infracost_here): Create shortcut for running infracost
- Loading branch information
1 parent
744b554
commit f95499c
Showing
2 changed files
with
21 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,20 @@ | ||
package infracost_here | ||
|
||
import ( | ||
parent_cmd "github.com/sikalabs/slu/cmd/scripts" | ||
"github.com/sikalabs/slu/utils/exec_utils" | ||
"github.com/spf13/cobra" | ||
) | ||
|
||
var Cmd = &cobra.Command{ | ||
Use: "infracost-here", | ||
Short: "Run infracost breakdown in current directory", | ||
Aliases: []string{"ic"}, | ||
Run: func(c *cobra.Command, args []string) { | ||
exec_utils.ExecOut("infracost", "breakdown", "--path", ".", "--show-skipped") | ||
}, | ||
} | ||
|
||
func init() { | ||
parent_cmd.Cmd.AddCommand(Cmd) | ||
} |