File tree Expand file tree Collapse file tree 2 files changed +24
-7
lines changed Expand file tree Collapse file tree 2 files changed +24
-7
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,30 @@ export class IniLoader{
24
24
* Load configurations from config/credentials files and cache them
25
25
* for later use. If no file is specified it will try to load default
26
26
* files.
27
- * @returns {object } object of all profile information in the file
27
+ * @returns {Record<string, string> } object of all profile information in the file
28
28
*/
29
29
loadFrom ( options : LoadFileOptions ) : IniFileContent ;
30
+
31
+ /**
32
+ * Load sso sessions from config/credentials files and cache them
33
+ * for later use. If no file is specified it will try to load default
34
+ * files.
35
+ * @returns {Record<string, string> } object of all sso sessions information in the file
36
+ */
37
+ loadSsoSessionsFrom ( options : LoadFileOptions ) : IniFileContent ;
38
+
39
+ /**
40
+ * Get default file path for config/credentials files.
41
+ *
42
+ * @param isConfig whether the file is a config file or a credentials file
43
+ * @returns {string } default file path
44
+ */
45
+ getDefaultFilePath ( isConfig : boolean ) : string ;
46
+
47
+ /**
48
+ * Get Home directory of the current user.
49
+ *
50
+ * @returns {string } home directory path
51
+ * */
52
+ getHomeDir ( ) : string ;
30
53
}
Original file line number Diff line number Diff line change @@ -103,9 +103,6 @@ AWS.IniLoader = AWS.util.inherit({
103
103
return this . resolvedSsoSessions [ filename ] ;
104
104
} ,
105
105
106
- /**
107
- * @api private
108
- */
109
106
getDefaultFilePath : function getDefaultFilePath ( isConfig ) {
110
107
return path . join (
111
108
this . getHomeDir ( ) ,
@@ -114,9 +111,6 @@ AWS.IniLoader = AWS.util.inherit({
114
111
) ;
115
112
} ,
116
113
117
- /**
118
- * @api private
119
- */
120
114
getHomeDir : function getHomeDir ( ) {
121
115
var env = process . env ;
122
116
var home = env . HOME ||
You can’t perform that action at this time.
0 commit comments