-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
659 additions
and
0 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 |
---|---|---|
@@ -0,0 +1 @@ | ||
/target |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
[package] | ||
name = "grepath" | ||
version = "0.1.0" | ||
edition = "2021" | ||
authors = ["kqito"] | ||
description = "Extract paths effortlessly from your command outputs with grepath" | ||
repository = "https://github.com/kqito/grepath" | ||
license = "MIT" | ||
readme = "README.md" | ||
categories = ["command-line-utilities", "text-processing", "parsing", "utilities"] | ||
keywords = ["path", "command-line", "grep", "regex", "extract", "files", "cli"] | ||
|
||
[badges] | ||
github = { repository = "kqito/tiny-typescript-transpiler", workflow = "Rust" } | ||
|
||
[dependencies] | ||
anyhow = { version = "1.0.82" } | ||
regex = "1.10.4" | ||
thiserror = "1.0.61" | ||
argh = "0.1.10" | ||
atty = "0.2.14" | ||
|
||
[dev-dependencies] | ||
pretty_assertions = "1.4.0" | ||
|
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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
❯ bun tsc --noEmit | ||
src/domains/commu/components/TestCard.tsx:134:11 - error TS2322: Type 'boolean' is not assignable to type 'number'. | ||
|
||
134 isRemovable={isRemovable} | ||
~~~~~~~~~~~ | ||
|
||
src/domains/commu/components/TestCard.tsx:22:3 | ||
22 isRemovable: number; | ||
~~~~~~~~~~~ | ||
The expected type comes from property 'isRemovable' which is declared here on type 'IntrinsicAttributes & Readonly<{ displayName: string; profileImageUrl: string; badgeImageUrl: string | undefined; authorType: IrvineV1FeedEntryAuthorType; ... 7 more ...; onOpenReportDialog: () => void; }>' | ||
|
||
src/domains/commu/components/TestCard.tsx:93:9 - error TS2322: Type 'number' is not assignable to type 'boolean'. | ||
|
||
93 isRemovable={isRemovable} | ||
~~~~~~~~~~~ | ||
|
||
src/domains/commu/components/TestCardContainer.tsx:16:3 | ||
16 isRemovable: boolean; | ||
~~~~~~~~~~~ | ||
The expected type comes from property 'isRemovable' which is declared here on type 'IntrinsicAttributes & Props' | ||
|
||
|
||
Found 2 errors in 2 files. | ||
|
||
Errors Files | ||
1 src/domains/commu/components/TestListCard.tsx:134 | ||
1 src/domains/commu/components/TestListCard.tsx:93 | ||
error: "tsc" exited with code 2 |
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
use argh::FromArgs; | ||
|
||
#[derive(FromArgs, PartialEq, Debug)] | ||
/// Args | ||
pub struct Args { | ||
#[argh(positional)] | ||
/// file | ||
pub file: Option<String>, | ||
|
||
#[argh(switch, short = 'd')] | ||
/// help | ||
pub debug: Option<bool>, | ||
|
||
#[argh(switch, short = 'l')] | ||
/// lines | ||
/// Extract only the file paths without line numbers | ||
/// e.g. src/main.rs | ||
pub lines: Option<bool>, | ||
|
||
#[argh(switch, short = 'u')] | ||
/// unique | ||
/// Omit duplicate paths | ||
pub unique: Option<bool>, | ||
} |
Oops, something went wrong.