-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use
Metadata
builder for human-panic
- Loading branch information
1 parent
5700e5f
commit 7e229b1
Showing
1 changed file
with
4 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,7 @@ use fiberplane::base64uuid::Base64Uuid; | |
use fiberplane::models::labels::Label; | ||
use fiberplane::models::notebooks::NewNotebook; | ||
use fiberplane::models::timestamps::{NewTimeRange, RelativeTimeRange}; | ||
use human_panic::setup_panic; | ||
use human_panic::{setup_panic, Metadata}; | ||
use interactive::workspace_picker; | ||
use manifest::Manifest; | ||
use once_cell::sync::Lazy; | ||
|
@@ -254,12 +254,9 @@ enum SubCommand { | |
async fn main() { | ||
// Set the human panic handler first thing first so in case we have a panic when setting | ||
// up the CLI, it also gets caught | ||
setup_panic!(Metadata { | ||
name: "fp".into(), | ||
version: env!("CARGO_PKG_VERSION").into(), | ||
authors: "[email protected]".into(), | ||
homepage: "https://fiberplane.com".into(), | ||
}); | ||
setup_panic!(Metadata::new("fp", env!("CARGO_PKG_VERSION")) | ||
.authors("[email protected]") | ||
.homepage("https://fiberplane.com")); | ||
|
||
let mut cli_args = env::args(); | ||
|
||
|