Skip to content

Commit

Permalink
clean makefile and plugin table for merge with github.com/francois2me…
Browse files Browse the repository at this point in the history
…tz/steampipe-plugin-ovh
  • Loading branch information
romain-pix-cyber committed Dec 27, 2024
1 parent a0b5601 commit 123b4e5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 19 deletions.
19 changes: 1 addition & 18 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,19 +1,2 @@
.PHONY: help

help: # show this message
@grep -E '^[a-zA-Z0-9 -]+:.*#' Makefile | while read -r l; do printf "\033[1;32m$$(echo $$l | cut -f 1 -d':')\033[00m:$$(echo $$l | cut -f 2- -d'#')\n"; done

install: # install the plugin as is
install:
go build -o ~/.steampipe/plugins/hub.steampipe.io/plugins/francois2metz/ovh@latest/steampipe-plugin-ovh.plugin *.go


uninstall: # for testing purposes : uninstalls & backups config
steampipe plugin uninstall francois2metz/ovh
mv ~/.steampipe/config/ovh.spc ~/.steampipe/config/ovh.spc.old || echo "config file not found"

apply_config:
mv ~/.steampipe/config/ovh.spc.old ~/.steampipe/config/ovh.spc

dev: install apply_config # for testing purposes : installs and apply config

reload: uninstall install apply_config # for testing purposes : uninstalls, saves config, re install and apply config
2 changes: 1 addition & 1 deletion ovh/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ func Plugin(ctx context.Context) *plugin.Plugin {
},
TableMap: map[string]*plugin.Table{
"ovh_bill": tableOvhBill(),
"ovh_log_self": tableOvhLog(),
"ovh_bill_detail": tableOvhBillDetails(),
"ovh_cloud_ai_app": tableOvhCloudAIApp(),
"ovh_cloud_ai_job": tableOvhCloudAIJob(),
Expand All @@ -35,6 +34,7 @@ func Plugin(ctx context.Context) *plugin.Plugin {
"ovh_cloud_storage_swift": tableOvhCloudStorageSwift(),
"ovh_cloud_volume": tableOvhCloudVolume(),
"ovh_cloud_volume_snapshot": tableOvhCloudVolumeSnapshot(),
"ovh_log_self": tableOvhLog(),
"ovh_refund": tableOvhRefund(),
"ovh_refund_detail": tableOvhRefundDetails(),
},
Expand Down

0 comments on commit 123b4e5

Please sign in to comment.