Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit bd95421

Browse files
Merge pull request #2045 from ramkishor-ch/issue_2044
moved cliChecker folder to softlayer-python folder because new changes are not picking up
2 parents db7a4ed + d0f1197 commit bd95421

File tree

3 files changed

+940
-544
lines changed

3 files changed

+940
-544
lines changed

cliChecker/checker.py renamed to checker.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
from SoftLayer.CLI import environment
22
from click.testing import CliRunner
33
from SoftLayer.CLI.core import cli
4+
import itertools
45

56
runner = CliRunner()
67
env = environment.Environment()
@@ -68,7 +69,10 @@ def printBody(commandArray):
6869
f.write("\t--------------------------------\n")
6970
f.write(f'\tDescription: {commandArray[2].strip()}\n')
7071
f.write("\t--------------------------------\n")
71-
f.write(f'\tUsage: {commandArray[0]}\n')
72+
list_of_strings = "".join(commandArray[0])
73+
command_strings=list_of_strings.replace("Usage: cli","Usage: slcli")
74+
grouped_strings = ["".join(g) for k, g in itertools.groupby(command_strings, lambda x: x == " ") if not k]
75+
f.write(f'\t{" ".join(grouped_strings)}\n')
7276
f.write("==============================================================\n")
7377

7478

cliChecker/README.md renamed to checker_README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ Script to list all commands in order to compare the changes
55
From the softlayer-python root directory, do the following after making changes.
66

77
```
8-
cd cliChecker
9-
py checker.py
8+
pip install SoftLayer
9+
cd softlayer-python
10+
python checker.py
1011
```

0 commit comments

Comments
 (0)