Skip to content

Commit

Permalink
Polish.
Browse files Browse the repository at this point in the history
  • Loading branch information
milesj committed Nov 26, 2024
1 parent ebb452f commit c7f786b
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
4 changes: 1 addition & 3 deletions crates/core/src/proto_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -652,13 +652,11 @@ impl ProtoConfig {
}

pub fn load_env_files(&self, paths: &[&PathBuf]) -> miette::Result<IndexMap<String, EnvVar>> {
use dotenvy::Error;

let mut vars = IndexMap::default();

let map_error = |error: dotenvy::Error, path: &Path| -> miette::Report {
match error {
Error::Io(inner) => FsError::Read {
dotenvy::Error::Io(inner) => FsError::Read {
path: path.to_path_buf(),
error: Box::new(inner),
}
Expand Down
9 changes: 9 additions & 0 deletions package/src/api-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,15 @@ export interface ToolMetadataOutput {
configSchema?: unknown | null;
/** Default alias or version to use as a fallback. */
defaultVersion?: UnresolvedVersionSpec | null;
/**
* List of deprecation messages that will be displayed to users
* of this plugin.
*/
deprecations?: string[];
/** Controls aspects of the tool inventory. */
inventory?: ToolInventoryMetadata;
/** Minimum version of proto required to execute this plugin. */
minimumProtoVersion?: string | null;
/** Human readable name of the tool. */
name: string;
/** Version of the plugin. */
Expand Down Expand Up @@ -140,6 +147,8 @@ export interface ParseVersionFileInput {
content: string;
/** Name of file that's being parsed. */
file: string;
/** Virtual path to the file being parsed. */
path: VirtualPath;
}

/** Output returned by the `parse_version_file` function. */
Expand Down
2 changes: 1 addition & 1 deletion registry/data/third-party.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
"name": "atlas",
"description": "manage your database schema as code.",
"author": "crashdump",
"homepageUrl": "https://atlasgo.io",
"homepageUrl": "https://atlasgo.io/",
"repositoryUrl": "https://github.com/crashdump/proto-tools",
"bins": [
"atlas"
Expand Down

0 comments on commit c7f786b

Please sign in to comment.