@@ -37,23 +37,25 @@ <h1 id="cli">Command Line Tools</h1>
37
37
</ p >
38
38
< p >
39
39
After downloading and installing it, you can start by logging in using< span ng-if ="sessionToken "> this current session token</ span > :
40
- < div class ="code prettyprint ng-binding " ng-if ="sessionToken ">
41
- oc login {{loginBaseURL}} --token=< span ng-show ="showSessionToken "> {{sessionToken}}</ span > < span ng-show ="!showSessionToken "> <hidden></ span >
40
+ < div ng-if ="sessionToken ">
41
+ < div class ="code prettyprint ng-binding ">
42
+ oc login {{loginBaseURL}} --token=< span ng-show ="showSessionToken "> {{sessionToken}}</ span > < span ng-show ="!showSessionToken "> <hidden></ span >
43
+ </ div >
44
+ < a href ="# " ng-click ="toggleShowSessionToken() ">
45
+ < span ng-show ="!showSessionToken "> Show token</ span >
46
+ < span ng-show ="showSessionToken "> Hide token</ span >
47
+ </ a >
48
+ < span ng-if ="!IS_IOS ">
49
+ < span class ="action-divider "> |</ span >
50
+ < copy-to-clipboard display-as-link ="true " clipboard-text ="'oc login ' + loginBaseURL + ' --token=' + sessionToken " custom-link-text ="'Copy command to clipboard' "> </ copy-to-clipboard >
51
+ </ span >
42
52
</ div >
43
- < a href ="# " ng-click ="toggleShowSessionToken() ">
44
- < span ng-show ="!showSessionToken "> Show token</ span >
45
- < span ng-show ="showSessionToken "> Hide token</ span >
46
- </ a >
47
- < span ng-if ="!IS_IOS ">
48
- < span class ="action-divider "> |</ span >
49
- < copy-to-clipboard display-as-link ="true " clipboard-text ="'oc login ' + loginBaseURL + ' --token=' + sessionToken " custom-link-text ="'Copy command to clipboard' "> </ copy-to-clipboard >
50
- </ span >
51
53
< pre class ="code prettyprint ng-binding " ng-if ="!sessionToken ">
52
54
oc login {{loginBaseURL}}
53
55
</ pre >
54
56
</ p >
55
57
56
- < div class ="alert alert-warning ">
58
+ < div class ="alert alert-warning " ng-if =" sessionToken " >
57
59
< span class ="pficon pficon-warning-triangle-o " aria-hidden ="true "> </ span >
58
60
< strong > A token is a form of a password.</ strong >
59
61
Do not share your API token.
0 commit comments