Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolaRHristov committed Oct 4, 2024
1 parent e6a7504 commit 85e6c60
Show file tree
Hide file tree
Showing 8 changed files with 28 additions and 619 deletions.
2 changes: 2 additions & 0 deletions Source/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,5 @@ impl Serialize for Error {
serializer.serialize_str(self.to_string().as_ref())
}
}

pub type Result<T> = std::result::Result<T, Error>;
5 changes: 3 additions & 2 deletions Source/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,9 @@ mod error;
mod parser;

use config::{Arg, Config};
pub use error::Error;
type Result<T> = std::result::Result<T, Error>;

pub use error::{Error, Result};
pub use parser::{ArgData, Matches, SubcommandMatches};

pub struct Cli<R: Runtime>(PluginApi<R, Config>);

Expand Down
50 changes: 23 additions & 27 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,29 +1,25 @@
{
"name": "@tauri-apps/plugin-cli",
"version": "2.0.0",
"license": "MIT OR Apache-2.0",
"authors": [
"Tauri Programme within The Commons Conservancy"
],
"repository": "https://github.com/tauri-apps/plugins-workspace",
"type": "module",
"types": "./dist-js/index.d.ts",
"main": "./dist-js/index.cjs",
"module": "./dist-js/index.js",
"exports": {
"types": "./dist-js/index.d.ts",
"import": "./dist-js/index.js",
"require": "./dist-js/index.cjs"
},
"scripts": {
"build": "rollup -c"
},
"files": [
"dist-js",
"README.md",
"LICENSE"
],
"dependencies": {
"@tauri-apps/api": "^2.0.0"
}
"authors": [
"Tauri Programme within The Commons Conservancy"
],
"dependencies": {
"@tauri-apps/api": "^2.0.0"
},
"exports": {
"import": "./dist-js/index.js",
"require": "./dist-js/index.cjs",
"types": "./dist-js/index.d.ts"
},
"files": [
"dist-js",
"README.md",
"LICENSE"
],
"main": "./dist-js/index.cjs",
"module": "./dist-js/index.js",
"name": "@tauri-apps/plugin-cli",
"scripts": {
"build": "rollup -c"
},
"types": "./dist-js/index.d.ts"
}
178 changes: 0 additions & 178 deletions src/config.rs

This file was deleted.

22 changes: 0 additions & 22 deletions src/error.rs

This file was deleted.

61 changes: 0 additions & 61 deletions src/lib.rs

This file was deleted.

Loading

0 comments on commit 85e6c60

Please sign in to comment.