aboutsummaryrefslogtreecommitdiff
path: root/mingling_pathf/test/src/test_files/test_completion.rs
diff options
context:
space:
mode:
Diffstat (limited to 'mingling_pathf/test/src/test_files/test_completion.rs')
-rw-r--r--mingling_pathf/test/src/test_files/test_completion.rs41
1 files changed, 41 insertions, 0 deletions
diff --git a/mingling_pathf/test/src/test_files/test_completion.rs b/mingling_pathf/test/src/test_files/test_completion.rs
new file mode 100644
index 0000000..87a655f
--- /dev/null
+++ b/mingling_pathf/test/src/test_files/test_completion.rs
@@ -0,0 +1,41 @@
+#[mingling::macros::completion(Some1)]
+fn my_completion1(ctx: &mingling::ShellContext) -> mingling::Suggest {
+ mingling::Suggest::new()
+}
+
+#[mingling::macros::completion(Some2)]
+pub fn my_completion2(ctx: &mingling::ShellContext) -> mingling::Suggest {
+ mingling::Suggest::new()
+}
+
+#[completion(Some3)]
+fn my_completion3(ctx: &mingling::ShellContext) -> mingling::Suggest {
+ mingling::Suggest::new()
+}
+
+#[completion(Some4)]
+pub fn my_completion4(ctx: &mingling::ShellContext) -> mingling::Suggest {
+ mingling::Suggest::new()
+}
+
+pub mod sub {
+ #[mingling::macros::completion(Some1)]
+ fn my_completion1(ctx: &mingling::ShellContext) -> mingling::Suggest {
+ mingling::Suggest::new()
+ }
+
+ #[mingling::macros::completion(Some2)]
+ pub fn my_completion2(ctx: &mingling::ShellContext) -> mingling::Suggest {
+ mingling::Suggest::new()
+ }
+
+ #[completion(Some3)]
+ fn my_completion3(ctx: &mingling::ShellContext) -> mingling::Suggest {
+ mingling::Suggest::new()
+ }
+
+ #[completion(Some4)]
+ pub fn my_completion4(ctx: &mingling::ShellContext) -> mingling::Suggest {
+ mingling::Suggest::new()
+ }
+}