Skip to content

Commit

Permalink
examples/templates: update examples
Browse files Browse the repository at this point in the history
  • Loading branch information
dobarx committed Mar 3, 2024
1 parent 2d52f87 commit 03aa289
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 29 deletions.
7 changes: 1 addition & 6 deletions examples/templates/hackerone/example.fabric
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
fabric {
cache_dir = "./.fabric"
plugin_registry {
mirror_dir = "dist/plugins"
}
plugin_versions = {
"blackstork/hackerone" = "0.0.0-dev"
"blackstork/hackerone" = ">= 0.4 < 1.0 || 0.4.0-rev0"
}
}

Expand All @@ -15,7 +11,6 @@ config data hackerone_reports {

document "example" {
title = "Using hackerone plugin"

data hackerone_reports "my_reports" {
program = [from_env_variable("HACKERONE_PROGRAM")]
}
Expand Down
10 changes: 2 additions & 8 deletions examples/templates/openai/example.fabric
Original file line number Diff line number Diff line change
@@ -1,20 +1,14 @@
fabric {
cache_dir = "./.fabric"
plugin_registry {
mirror_dir = "dist/plugins"
}
plugin_versions = {
"blackstork/openai" = "0.0.0-dev"
"blackstork/openai" = ">= 0.4 < 1.0 || 0.4.0-rev0"
}
}

config data csv {}

document "example" {
title = "Testing plugins"

data csv "csv_file" {
path = "./examples/templates/openai/data.csv"
path = "./data.csv"
}
content text {
text = "Values from the CSV file"
Expand Down
4 changes: 0 additions & 4 deletions examples/templates/stixview/data.csv

This file was deleted.

6 changes: 1 addition & 5 deletions examples/templates/stixview/example.fabric
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
fabric {
cache_dir = "./.fabric"
plugin_registry {
mirror_dir = "dist/plugins"
}
plugin_versions = {
"blackstork/stixview" = "0.0.0-dev"
"blackstork/stixview" = ">= 0.4 < 1.0 || 0.4.0-rev0"
}
}

Expand Down
7 changes: 1 addition & 6 deletions examples/templates/virustotal/example.fabric
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
fabric {
cache_dir = "./.fabric"
plugin_registry {
mirror_dir = "dist/plugins"
}
plugin_versions = {
"blackstork/virustotal" = "0.0.0-dev"
"blackstork/virustotal" = ">= 0.4 < 1.0 || 0.4.0-rev0"
}
}

Expand All @@ -14,7 +10,6 @@ config data virustotal_api_usage {

document "example" {
title = "Using virustotal plugin"

data virustotal_api_usage "my_usage" {
user_id = from_env_variable("VIRUSTOTAL_USER_ID")
start_date = "20240201"
Expand Down

0 comments on commit 03aa289

Please sign in to comment.