Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

moved cliChecker folder to softlayer-python folder because new changes are not picking up #2045

Merged
merged 1 commit into from
Jul 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion cliChecker/checker.py → checker.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from SoftLayer.CLI import environment
from click.testing import CliRunner
from SoftLayer.CLI.core import cli
import itertools

runner = CliRunner()
env = environment.Environment()
Expand Down Expand Up @@ -68,7 +69,10 @@ def printBody(commandArray):
f.write("\t--------------------------------\n")
f.write(f'\tDescription: {commandArray[2].strip()}\n')
f.write("\t--------------------------------\n")
f.write(f'\tUsage: {commandArray[0]}\n')
list_of_strings = "".join(commandArray[0])
command_strings=list_of_strings.replace("Usage: cli","Usage: slcli")
grouped_strings = ["".join(g) for k, g in itertools.groupby(command_strings, lambda x: x == " ") if not k]
f.write(f'\t{" ".join(grouped_strings)}\n')
f.write("==============================================================\n")


Expand Down
5 changes: 3 additions & 2 deletions cliChecker/README.md → checker_README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ Script to list all commands in order to compare the changes
From the softlayer-python root directory, do the following after making changes.

```
cd cliChecker
py checker.py
pip install SoftLayer
cd softlayer-python
python checker.py
```
Loading