John D Pell
c837232643
test/bash-it: adopt newly revamped `setup()`
2022-03-03 22:43:17 -08:00
John D Pell
a9a40a3cad
lib/helpers: add `preview` to `bash-it` spaghetti
2022-02-07 15:27:03 -08:00
John D Pell
5f9a3f143f
completion/bash-it: rename `_bash-it-comp()`
...
...to `_bash-it()`.
The norm is for the completion function for, e.g., `teh_cmd`. to be named with the same name and a prepended underscore, i.e. `_teh_cmd`. This alsö reduces namespace confusion, which will be relevant in a future patch.
2022-01-24 21:41:23 -08:00
John D Pell
e1e971c0ea
completion/bash-it: use `read -a` to populate `$COMPREPLY`
...
This allows for spaces and special characters in file names, i.e. internaltional/unicode words.
2022-01-24 21:41:13 -08:00
John D Pell
3874ad85c2
completion/bash-it: use existing functions
2022-01-24 21:41:13 -08:00
John D Pell
9dcbeec7ad
tests: test_helper already loads `composure.sh`
...
...and `cite()`s metadata
2022-01-08 08:29:13 -08:00
Noah Gorny
cd38f32d95
test: Fix completion tests and add profile completion ones
2021-09-29 00:30:24 +03:00
buhl
49d7d2e8c4
Getting Bash-it to use the vendored composure
...
Fixed tests
Fixed install.sh and bash_it.sh
Added gitattributes to the vendor folder
Changed documentation
2021-02-02 16:34:04 +01:00
Noah Gorny
c387517122
Merge pull request #1626 from NoahGorny/update-to-stable-or-unstable
...
bash-it update to stable or dev
2020-10-16 14:16:06 +03:00
Noah Gorny
fc17169b1c
test: Add completion test for -s --silent flag
2020-10-13 14:42:02 +03:00
Noah Gorny
1bdcacf242
completion: Update completion for new bash-it update
...
Also fix the update completion test
2020-10-13 14:42:02 +03:00
Noah Gorny
f4279e63c1
Add bash-it restart command
...
Also add completion and completion tests
2020-10-12 15:29:36 +03:00
Noah Gorny
1e674643b3
completion: Add bash-it doctor completion
...
Also fix the tests and add a new one
2020-06-23 15:12:43 +03:00
Nils Winkler
818a95d79c
Refactored test setup code
...
Removed the copy/paste code, moved it into a reusable function that can
be called from the `local_setup` function as needed. Also simplified the
handling of the $HOME variable since @rico-chet provided a better way of
doing this.
2020-04-21 08:25:40 +02:00
Nils Winkler
34993f5da3
Excluding enabled directory when setting up test fixtures
2020-04-21 08:25:40 +02:00
Nils Winkler
3093273425
Updated rsync command to work with latest version of bats-core
2020-04-21 08:25:39 +02:00
Piotr Rogoża
89d1661d23
Replaced reload section with proper function.
...
Added completion for reload.
Fixed order in completion
Added unit tests for completion
The variable BASH_IT_AUTOMATIC_RELOAD_AFTER_CONFIG_CHANGE has to be unset.
2018-04-18 21:51:20 +02:00
Nils Winkler
80e510d65b
Added assert_link_exist function and use that
2017-10-14 18:02:04 +02:00
Nils Winkler
2691a5b138
Moved to bats-assert for assert functions
2017-10-14 18:00:43 +02:00
Nils Winkler
8319545b0a
Switched to Bats-core as a submodule
...
Can't use the official v0.4.0 release, since our tests rely on a change
that was made after the release of v0.4.0.
This code currently uses an unversioned commit of the bats-core repo, we
will switch to a supported version once it has been released, e.g.
v0.4.1.
2017-10-14 18:00:43 +02:00
Mike Fiedler
8015bba27f
Exit directory upon completion, update tests
...
Signed-off-by: Mike Fiedler <miketheman@gmail.com>
2017-09-30 20:06:42 -04:00
Nils Winkler
5c66f478dd
Completed test suite for Bash-it completion
2017-09-17 21:05:58 +02:00
Nils Winkler
cd578f8772
More tests for completion
2017-09-17 21:05:58 +02:00
Nils Winkler
298b9c6455
Added test case for completion "help aliases v"
2017-09-17 21:05:58 +02:00
Nils Winkler
688d0cb540
Some more test cases
2017-09-17 21:05:58 +02:00
Nils Winkler
05696df361
Additional test cases for completions with dashes and dots
2017-09-17 21:05:58 +02:00
Nils Winkler
ec327486ef
Checking global directory for completions as well
2017-09-17 21:05:58 +02:00
Nils Winkler
e7298a5303
Fixed case where nothing was enabled
2017-09-17 21:05:58 +02:00
Nils Winkler
adb2f1071f
Added tests for completion results with various file locations and names
2017-09-17 21:05:58 +02:00
Nils Winkler
b31c7a0afa
Refactored completion check into a reusable function
2017-09-17 21:05:58 +02:00
Nils Winkler
a4c6a1aaed
Added first tests for Bash-it completion script
2017-09-17 21:05:58 +02:00