From 2dbc4d6a288c319011dcc8dce9c117e13213090a Mon Sep 17 00:00:00 2001 From: Jan Klattenhoff Date: Wed, 28 Aug 2024 13:10:26 +0200 Subject: [PATCH] feat: add shell_completion dependency and import --- Cargo.lock | 9 +++++++++ Cargo.toml | 1 + src/main.rs | 2 ++ 3 files changed, 12 insertions(+) diff --git a/Cargo.lock b/Cargo.lock index 79262b3..50f7213 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -5,3 +5,12 @@ version = 3 [[package]] name = "jshell" version = "0.1.0" +dependencies = [ + "shell_completion", +] + +[[package]] +name = "shell_completion" +version = "0.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "73937c192504363290613e241705a02dff92ae7c03f544e2a69bbef24cc1042c" diff --git a/Cargo.toml b/Cargo.toml index 023b8d3..b2a72a2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,3 +4,4 @@ version = "0.1.0" edition = "2021" [dependencies] +shell_completion = "0.0.2" diff --git a/src/main.rs b/src/main.rs index f18ab02..8bde03e 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,5 +1,7 @@ use std::{env, io::{stdin, stdout, Write}, path::Path, process::{Child, Command, Stdio}}; +use shell_completion::{BashCompletionInput, CompletionInput, CompletionSet}; + fn main(){ loop { println!("");