lumbung-cli 1.0.2 → 1.0.4
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.
- package/bin/lumbung.js +4 -1
- package/package.json +1 -1
- package/src/commands/auth.js +2 -1
- package/src/lib/api.js +2 -1
package/bin/lumbung.js
CHANGED
|
@@ -42,7 +42,7 @@ const banner = `
|
|
|
42
42
|
program
|
|
43
43
|
.name('lumbung')
|
|
44
44
|
.description('CLI tool for Lumbung Kode - Gudang Snippet Kode Modern')
|
|
45
|
-
|
|
45
|
+
.version('1.0.4')
|
|
46
46
|
.hook('preAction', (thisCommand) => {
|
|
47
47
|
// Only show banner for main help
|
|
48
48
|
if (thisCommand.args.length === 0 && !process.argv.slice(2).length) {
|
|
@@ -116,3 +116,6 @@ program
|
|
|
116
116
|
|
|
117
117
|
// Parse and execute
|
|
118
118
|
program.parse()
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
|
package/package.json
CHANGED
package/src/commands/auth.js
CHANGED
|
@@ -68,7 +68,7 @@ export async function login() {
|
|
|
68
68
|
spinner.fail(chalk.red('Login failed'))
|
|
69
69
|
console.log(chalk.red(`Error: ${error.message}`))
|
|
70
70
|
console.log(chalk.gray('\nMake sure your email and password are correct.'))
|
|
71
|
-
console.log(chalk.gray('If you don\'t have an account, register at https://
|
|
71
|
+
console.log(chalk.gray('If you don\'t have an account, register at https://lumbungkode.netlify.app'))
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
74
|
|
|
@@ -93,3 +93,4 @@ export async function logout() {
|
|
|
93
93
|
}
|
|
94
94
|
}
|
|
95
95
|
|
|
96
|
+
|
package/src/lib/api.js
CHANGED
|
@@ -7,7 +7,7 @@ import { getConfig } from './config.js'
|
|
|
7
7
|
|
|
8
8
|
// Supabase credentials (same as web app)
|
|
9
9
|
const SUPABASE_URL = 'https://xwaxnszxtgelllkstrcd.supabase.co'
|
|
10
|
-
const SUPABASE_ANON_KEY = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.
|
|
10
|
+
const SUPABASE_ANON_KEY = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6Inh3YXhuc3p4dGdlbGxsa3N0cmNkIiwicm9sZSI6ImFub24iLCJpYXQiOjE3NjQ2OTMwODUsImV4cCI6MjA4MDI2OTA4NX0.8rivgwRpax9X3OuR9qKX27y8-9CWcigZn0IGObKXU6o'
|
|
11
11
|
|
|
12
12
|
// Create Supabase client
|
|
13
13
|
export function createSupabaseClient() {
|
|
@@ -140,3 +140,4 @@ export async function searchSnippets(query, options = {}) {
|
|
|
140
140
|
if (error) throw error
|
|
141
141
|
return data
|
|
142
142
|
}
|
|
143
|
+
|