From 6906a2f75e428221f8b9bfa28b2c6821eb3ebe30 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Wed, 26 Jun 2019 12:02:13 +0200 Subject: feat: deno completions command (#2577) --- cli/flags.rs | 52 ++++++++++++++++++++++++++++++++++++++++++++++++---- cli/main.rs | 1 + website/manual.md | 46 ++++++++++++++++++++++++++++++++++------------ 3 files changed, 83 insertions(+), 16 deletions(-) diff --git a/cli/flags.rs b/cli/flags.rs index 99d78546b..f7444f8d1 100644 --- a/cli/flags.rs +++ b/cli/flags.rs @@ -1,7 +1,14 @@ // Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. -use clap::{App, AppSettings, Arg, ArgMatches, SubCommand}; +use clap::App; +use clap::AppSettings; +use clap::Arg; +use clap::ArgMatches; +use clap::Shell; +use clap::SubCommand; use crate::deno_dir; use log::Level; +use std; +use std::str::FromStr; // Creates vector of strings, Vec macro_rules! svec { @@ -300,7 +307,7 @@ ability to spawn subprocesses. // this is a fake subcommand - it's used in conjunction with // AppSettings:AllowExternalSubcommand to treat it as an // entry point script - SubCommand::with_name("