Skip to content

Commit

Permalink
chore(release): prepare for v0.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
wllfaria committed Jun 20, 2024
1 parent 8f78a1f commit bbb5577
Show file tree
Hide file tree
Showing 17 changed files with 27 additions and 30 deletions.
10 changes: 5 additions & 5 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ resolver = "2"
name = "hac"

[workspace.package]
version = "0.1.0"
version = "0.2.0"

[workspace.dependencies]
hac-config = { path = "hac-config" }
Expand Down
2 changes: 1 addition & 1 deletion hac-cli/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "hac-cli"
version = "0.1.0"
version = "0.2.0"
edition = "2021"
description = "your handy API client, on your terminal!"
repository = "https://github.com/wllfaria/hac"
Expand Down
2 changes: 1 addition & 1 deletion hac-client/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "hac-client"
version = "0.1.0"
version = "0.2.0"
edition = "2021"
description = "your handy API client, on your terminal!"
repository = "https://github.com/wllfaria/hac"
Expand Down
1 change: 0 additions & 1 deletion hac-client/src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ impl<'app> App<'app> {
config: &'app hac_config::Config,
dry_run: bool,
) -> anyhow::Result<Self> {

let terminal = Terminal::new(CrosstermBackend::new(std::io::stdout()))?;
Ok(Self {
screen_manager: ScreenManager::new(
Expand Down
14 changes: 9 additions & 5 deletions hac-client/src/pages/collection_viewer/request_editor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ impl<'re> RequestEditor<'re> {
ReqEditorTabs::Body => self.body_editor.draw(frame, size)?,
ReqEditorTabs::Headers => self.headers_editor.draw(frame, size)?,
ReqEditorTabs::Query => UnderConstruction::new(self.colors).draw(frame, size)?,
ReqEditorTabs::Auth => self.auth_editor.draw(frame, size)?,
ReqEditorTabs::Auth => UnderConstruction::new(self.colors).draw(frame, size)?,
}

Ok(())
Expand Down Expand Up @@ -285,13 +285,17 @@ impl Eventful for RequestEditor<'_> {
},
ReqEditorTabs::Headers => match self.headers_editor.handle_key_event(key_event)? {
Some(HeadersEditorEvent::Quit) => return Ok(Some(RequestEditorEvent::Quit)),
Some(HeadersEditorEvent::RemoveSelection) => {
return Ok(Some(RequestEditorEvent::RemoveSelection))
}
None => {}
},
ReqEditorTabs::Query => {}
ReqEditorTabs::Auth => match self.auth_editor.handle_key_event(key_event)? {
Some(_) => todo!(),
None => {}
},
ReqEditorTabs::Auth => {
if (self.auth_editor.handle_key_event(key_event)?).is_some() {
todo!()
}
}
}

Ok(None)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ use crate::pages::{Eventful, Renderable};

#[derive(Debug)]
pub struct AuthEditor<'ae> {
colors: &'ae hac_colors::colors::Colors,
_colors: &'ae hac_colors::colors::Colors,
}

impl<'ae> AuthEditor<'ae> {
pub fn new(colors: &'ae hac_colors::colors::Colors) -> Self {
AuthEditor { colors }
AuthEditor { _colors: colors }
}
}

Expand All @@ -25,7 +25,7 @@ impl Renderable for AuthEditor<'_> {
impl Eventful for AuthEditor<'_> {
type Result = ();

fn handle_key_event(&mut self, key_event: KeyEvent) -> anyhow::Result<Option<Self::Result>> {
fn handle_key_event(&mut self, _key_event: KeyEvent) -> anyhow::Result<Option<Self::Result>> {
Ok(None)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ pub struct BodyEditor<'be> {
/// Only KeyAction::Complex are stored here as any other kind of key action can be acted upon
/// instantly
keymap_buffer: Option<KeyAction>,
collection_store: Rc<RefCell<CollectionStore>>,
_collection_store: Rc<RefCell<CollectionStore>>,
}

impl<'be> BodyEditor<'be> {
Expand All @@ -60,7 +60,7 @@ impl<'be> BodyEditor<'be> {
Self {
body,
tree,
collection_store,
_collection_store: collection_store,
styled_display,
cursor: Cursor::default(),
editor_mode: EditorMode::Normal,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ use super::headers_editor_edit_form::{HeadersEditorForm, HeadersEditorFormEvent}
#[derive(Debug)]
pub enum HeadersEditorEvent {
Quit,
RemoveSelection,
}

#[derive(Debug)]
Expand Down Expand Up @@ -438,6 +439,7 @@ impl Eventful for HeadersEditor<'_> {
.borrow_mut()
.push_overlay(CollectionViewerOverlay::HeadersForm(self.selected_row));
}
KeyCode::Esc => return Ok(Some(HeadersEditorEvent::RemoveSelection)),
KeyCode::Char('n') => {
let idx = headers.len();
headers.push(HeaderMap {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ impl<'rf> RequestForm<'rf, RequestFormCreate> {
marker: std::marker::PhantomData,
request: None,
no_available_parent_timer: None,
previous_parent: None,
}
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
use hac_core::collection::types::*;

use crate::ascii::LOGO_ASCII;
use crate::pages::collection_viewer::collection_store::CollectionStore;
use crate::pages::input::Input;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ impl<'rf> RequestForm<'rf, RequestFormEdit> {
marker: std::marker::PhantomData,
request: Some(request),
no_available_parent_timer: None,
previous_parent: None,
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,6 @@ pub struct RequestForm<'rf, State = RequestFormCreate> {
/// lifetimes or to Rc our way to hell, along with it we also store the name
/// for displaying purposes
pub parent_dir: Option<(String, String)>,
/// the previous parent of the request, used when editing to remove the request
/// from the previous directory when changing parents
pub previous_parent: Option<String>,
/// which form field is currently focused, so we can direct interactions
/// accordingly
pub focused_field: FormField,
Expand Down
2 changes: 1 addition & 1 deletion hac-colors/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "hac-colors"
version = "0.1.0"
version = "0.2.0"
edition = "2021"
description = "your handy API client, on your terminal!"
repository = "https://github.com/wllfaria/hac"
Expand Down
2 changes: 1 addition & 1 deletion hac-config/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "hac-config"
version = "0.1.0"
version = "0.2.0"
edition = "2021"
description = "your handy API client, on your terminal!"
repository = "https://github.com/wllfaria/hac"
Expand Down
2 changes: 1 addition & 1 deletion hac-core/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "hac-core"
version = "0.1.0"
version = "0.2.0"
edition = "2021"
description = "your handy API client, on your terminal!"
repository = "https://github.com/wllfaria/hac"
Expand Down
1 change: 0 additions & 1 deletion hac-core/src/collection/errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,3 @@ where
CollectionError::Unknown(msg)
}
}

0 comments on commit bbb5577

Please sign in to comment.