Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openwhisk-runtime-python
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Groundhog
openwhisk-runtime-python
Commits
6459cac3
Commit
6459cac3
authored
8 years ago
by
Mark Deuser
Browse files
Options
Downloads
Patches
Plain Diff
Add command to generate bash autocompletion script
Fixes #802
parent
788908c4
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tests/src/system/basic/WskBasicTests.scala
+1
-0
1 addition, 0 deletions
tests/src/system/basic/WskBasicTests.scala
tests/src/system/basic/WskSdkTests.scala
+11
-0
11 additions, 0 deletions
tests/src/system/basic/WskSdkTests.scala
with
12 additions
and
0 deletions
tests/src/system/basic/WskBasicTests.scala
+
1
−
0
View file @
6459cac3
...
...
@@ -552,4 +552,5 @@ class WskBasicTests
wsk
.
namespace
.
get
(
expectedExitCode
=
SUCCESS_EXIT
)(
WskProps
()).
stdout
should
include
(
"default"
)
}
}
This diff is collapsed.
Click to expand it.
tests/src/system/basic/WskSdkTests.scala
+
11
−
0
View file @
6459cac3
...
...
@@ -23,6 +23,7 @@ import org.junit.runner.RunWith
import
org.scalatest.junit.JUnitRunner
import
common.TestHelpers
import
common.TestUtils.SUCCESS_EXIT
import
common.Wsk
import
common.WskProps
import
common.WskTestHelpers
...
...
@@ -75,4 +76,14 @@ class WskSdkTests
stdout
should
include
(
"Swift SDK coming soon."
)
}
it
should
"install the bash auto-completion bash script"
in
{
val
scriptfilename
=
"wsk_cli_bash_completion.sh"
val
stdout
=
wsk
.
cli
(
Seq
(
"sdk"
,
"install"
,
"bashauto"
),
expectedExitCode
=
SUCCESS_EXIT
).
stdout
stdout
should
include
(
"is installed in the curent directory"
)
val
scriptfile
=
new
File
(
scriptfilename
)
val
fileContent
=
FileUtils
.
readFileToString
(
scriptfile
)
fileContent
should
include
(
"bash completion for wsk"
)
scriptfile
.
delete
()
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment