Skip to content

Commit

Permalink
Use new client layout
Browse files Browse the repository at this point in the history
  • Loading branch information
hatchan committed Feb 27, 2024
1 parent b90438d commit 3a182a7
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
3 changes: 2 additions & 1 deletion src/config.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
use anyhow::{anyhow, Error, Result};
use directories::ProjectDirs;
use fiberplane::api_client::clients::{default_config, ApiClient};
use fiberplane::api_client::clients::default_config;
use fiberplane::api_client::ApiClient;
use hyper::http::HeaderValue;
use hyper::HeaderMap;
use serde::{Deserialize, Serialize};
Expand Down
3 changes: 1 addition & 2 deletions src/interactive.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
use anyhow::{anyhow, bail, Context, Result};
use dialoguer::{theme, Confirm, FuzzySelect, Input, MultiSelect, Select};
use fiberplane::api_client::clients::ApiClient;
use fiberplane::api_client::{
data_source_get, data_source_list, notebook_search, proxy_list, snippet_list, template_list,
trigger_list, view_list, webhook_delivery_list, webhook_list,
workspace_front_matter_schema_get, workspace_list, workspace_user_list,
workspace_front_matter_schema_get, workspace_list, workspace_user_list, ApiClient,
};
use fiberplane::base64uuid::Base64Uuid;
use fiberplane::models::data_sources::DataSource;
Expand Down
2 changes: 1 addition & 1 deletion src/run/cell_writer.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
use super::parse_logs::{contains_logs, parse_logs};
use anyhow::{anyhow, Context, Result};
use bytes::Bytes;
use fiberplane::api_client::clients::ApiClient;
use fiberplane::api_client::notebook_cells_append;
use fiberplane::api_client::ApiClient;
use fiberplane::base64uuid::Base64Uuid;
use fiberplane::models::notebooks;
use fiberplane::models::notebooks::{Cell, CodeCell, LogCell, TextCell};
Expand Down
5 changes: 3 additions & 2 deletions src/shell/notebook_writer.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
use anyhow::{anyhow, Result};
use fiberplane::api_client::clients::ApiClient;
use fiberplane::api_client::{notebook_cell_append_text, notebook_cells_append, profile_get};
use fiberplane::api_client::{
notebook_cell_append_text, notebook_cells_append, profile_get, ApiClient,
};
use fiberplane::base64uuid::Base64Uuid;
use fiberplane::models::formatting::{Annotation, AnnotationWithOffset, Formatting, Mention};
use fiberplane::models::notebooks::operations::CellAppendText;
Expand Down
3 changes: 1 addition & 2 deletions src/templates.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,9 @@ use crate::{config::api_client_configuration, fp_urls::NotebookUrlBuilder};
use anyhow::{anyhow, bail, Context, Error, Result};
use clap::{Parser, ValueEnum, ValueHint};
use cli_table::Table;
use fiberplane::api_client::clients::ApiClient;
use fiberplane::api_client::{
notebook_create, notebook_get, template_create, template_delete, template_expand, template_get,
template_list, template_update, trigger_create,
template_list, template_update, trigger_create, ApiClient,
};
use fiberplane::base64uuid::Base64Uuid;
use fiberplane::models::names::Name;
Expand Down
4 changes: 2 additions & 2 deletions src/triggers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ use crate::templates::TemplateArguments;
use anyhow::{Context, Result};
use clap::{Parser, ValueEnum};
use cli_table::Table;
use fiberplane::api_client::clients::{default_config, ApiClient};
use fiberplane::api_client::clients::default_config;
use fiberplane::api_client::{
trigger_create, trigger_delete, trigger_get, trigger_invoke, trigger_list,
trigger_create, trigger_delete, trigger_get, trigger_invoke, trigger_list, ApiClient,
};
use fiberplane::base64uuid::Base64Uuid;
use fiberplane::models::names::Name;
Expand Down

0 comments on commit 3a182a7

Please sign in to comment.