@spfn/cli 0.0.5 → 0.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/login.js +4 -4
  2. package/package.json +1 -1
package/lib/login.js CHANGED
@@ -47,7 +47,7 @@ function installGitCredentials(
47
47
  console.log(`✔️ Stored credentials for git.superfunctions.ai/${repoPath}`);
48
48
  }
49
49
 
50
- function mergeGradleInit()
50
+ function mergeGradleInit(username, token)
51
51
  {
52
52
  const dir = path.join(os.homedir(), ".gradle");
53
53
  const file = path.join(dir, "init.gradle");
@@ -70,8 +70,8 @@ function mergeGradleInit()
70
70
  " name = 'Gitea'",
71
71
  " url = uri('https://git.superfunctions.ai/api/packages/sf/maven')",
72
72
  " credentials {",
73
- " username = System.getenv('SF_USERNAME')",
74
- " password = System.getenv('SF_AUTH_TOKEN')",
73
+ ` username = '${username}'`,
74
+ ` password = '${token}'`,
75
75
  " }",
76
76
  " }",
77
77
  " mavenCentral()",
@@ -118,7 +118,7 @@ export function login()
118
118
  return;
119
119
  }
120
120
 
121
- mergeGradleInit();
121
+ mergeGradleInit(username, token);
122
122
 
123
123
  // npm registry 설정 (생략)
124
124
  try
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spfn/cli",
3
- "version": "0.0.5",
3
+ "version": "0.0.6",
4
4
  "description": "Superfunction CLI",
5
5
  "keywords": [
6
6
  "cli",