-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use the stdlib instead of atty #43
Comments
@o0Ignition0o : In my local fork, I quickly tried using I can take a shot at this. |
Yes @gabhijit it would make sense to get rid of the |
Will send a PR for this sometime next week, will also see if any other dependencies can be updated. |
Updated `clap` to use version 4 and thus removed some unwanted dependencies such as `structopt` and `bestructed` Also updated all dependencies to their latest minor versions.
Updated `clap` to use version 4 and thus removed some unwanted dependencies such as `structopt` and `bestructed` Also updated all dependencies to their latest minor versions.
Updated `clap` to use version 4 and thus removed some unwanted dependencies such as `structopt` and `buildstructor` Also updated all dependencies to their latest minor versions.
* Clap v4 and updated ther dependencies (#43) Updated `clap` to use version 4 and thus removed some unwanted dependencies such as `structopt` and `buildstructor` Also updated all dependencies to their latest minor versions. * Better support for 'building' `Opts` structure. Added `default` derive on the `Opts` structure and a bunch of public methods to set various attributes of the `Opts` structure. Thus `Opts` structure can now be created using `Opts::parse` or using `Opts::default` and then can be updated using `builder` pattern. Also added documentation and unit tests for building `Opts` structure. Changed the example to use the `builder` pattern from original `parse_from` based derive. * Public APIs to use `Into` and `builder` function All the public API functions were using `&str`, which is not wrong per se, but even better approach is to use an `Into` for the public API. Updated public APIs to use this. Also added a `builder` function as using `default` may not be obvious, but a documented `builder` API is a good choice.
apollographql/router#3809
The apollo-router-scaffold crate currently depends on clap version 2.34.0 which depends on the atty crate which has potential unsoundness and is unmaintained. Upgrading clap to version 4.4.2 (same as the apollo-router depends on) would remove atty from the workspace entirely.
The text was updated successfully, but these errors were encountered: