mirror of
https://github.com/dathere/ckanaction.git
synced 2025-11-09 14:19:49 +00:00
build: remove dotenvy
This commit is contained in:
parent
5376002177
commit
0d29a691c0
4 changed files with 6 additions and 16 deletions
|
|
@ -1,14 +1,9 @@
|
|||
use dotenvy::dotenv;
|
||||
|
||||
#[tokio::main]
|
||||
async fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||
// Load environment variables from .env file
|
||||
dotenv()?;
|
||||
|
||||
// Initialize and build CKAN struct
|
||||
let ckan = ckanaction::CKAN::builder()
|
||||
.url("http://localhost:5000")
|
||||
.token(dotenvy::var("CKAN_API_TOKEN")?)
|
||||
.token("CKAN_API_TOKEN".to_string())
|
||||
.build();
|
||||
|
||||
// Send request to /status_show and print output
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue