Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -941,14 +941,14 @@
"/home/anna/work/notion/natalya/Export-fad9ecb4-a1a5-4623-920d-df32dd423743",
"-u",
"user1",
"-pw",
"-p",
"1234",
"-ws",
"-w",
"ws5",
"-ts",
"-t",
"notion"
],
// "args": ["src/__start.ts", "import-notion-with-teamspaces", "/home/anna/work/notion/natalya/Export-fad9ecb4-a1a5-4623-920d-df32dd423743", "-u", "user1", "-pw", "1234", "-ws", "ws1"],
// "args": ["src/__start.ts", "import-notion-with-teamspaces", "/home/anna/work/notion/natalya/Export-fad9ecb4-a1a5-4623-920d-df32dd423743", "-u", "user1", "-p", "1234", "-w", "ws1"],
"env": {
"FRONT_URL": "http://localhost:8087"
},
Expand All @@ -968,9 +968,9 @@
"/home/anna/work/clickup/aleksandr/debug/mentions.csv",
"-u",
"user1",
"-pw",
"-p",
"1234",
"-ws",
"-w",
"ws10"
],
"env": {
Expand All @@ -992,9 +992,9 @@
"/home/anna/huly/platform/dev/import-tool/docs/huly/example-workspace",
"-u",
"user1",
"-pw",
"-p",
"1234",
"-ws",
"-w",
"ws1"
],
"env": {
Expand Down
18 changes: 9 additions & 9 deletions dev/import-tool/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,8 @@ export function importTool (): void {
.command('import-notion-with-teamspaces <dir>')
.description('import extracted archive exported from Notion as "Markdown & CSV"')
.requiredOption('-u, --user <user>', 'user')
.requiredOption('-pw, --password <password>', 'password')
.requiredOption('-ws, --workspace <workspace>', 'workspace url where the documents should be imported to')
.requiredOption('-p, --password <password>', 'password')
.requiredOption('-w, --workspace <workspace>', 'workspace url where the documents should be imported to')
.action(async (dir: string, cmd) => {
const { workspace, user, password } = cmd
await authorize(user, password, workspace, async (client, uploader) => {
Expand All @@ -129,9 +129,9 @@ export function importTool (): void {
.command('import-notion-to-teamspace <dir>')
.description('import extracted archive exported from Notion as "Markdown & CSV"')
.requiredOption('-u, --user <user>', 'user')
.requiredOption('-pw, --password <password>', 'password')
.requiredOption('-ws, --workspace <workspace>', 'workspace url where the documents should be imported to')
.requiredOption('-ts, --teamspace <teamspace>', 'new teamspace name where the documents should be imported to')
.requiredOption('-p, --password <password>', 'password')
.requiredOption('-w, --workspace <workspace>', 'workspace url where the documents should be imported to')
.requiredOption('-t, --teamspace <teamspace>', 'new teamspace name where the documents should be imported to')
.action(async (dir: string, cmd) => {
const { workspace, user, password, teamspace } = cmd
await authorize(user, password, workspace, async (client, uploader) => {
Expand All @@ -144,8 +144,8 @@ export function importTool (): void {
.command('import-clickup-tasks <file>')
.description('import extracted archive exported from Notion as "Markdown & CSV"')
.requiredOption('-u, --user <user>', 'user')
.requiredOption('-pw, --password <password>', 'password')
.requiredOption('-ws, --workspace <workspace>', 'workspace url where the documents should be imported to')
.requiredOption('-p, --password <password>', 'password')
.requiredOption('-w, --workspace <workspace>', 'workspace url where the documents should be imported to')
.action(async (file: string, cmd) => {
const { workspace, user, password } = cmd
await authorize(user, password, workspace, async (client, uploader) => {
Expand All @@ -159,8 +159,8 @@ export function importTool (): void {
.command('import <dir>')
.description('import issues in Unified Huly Format')
.requiredOption('-u, --user <user>', 'user')
.requiredOption('-pw, --password <password>', 'password')
.requiredOption('-ws, --workspace <workspace>', 'workspace url where the documents should be imported to')
.requiredOption('-p, --password <password>', 'password')
.requiredOption('-w, --workspace <workspace>', 'workspace url where the documents should be imported to')
.action(async (dir: string, cmd) => {
const { workspace, user, password } = cmd
await authorize(user, password, workspace, async (client, uploader) => {
Expand Down
16 changes: 8 additions & 8 deletions foundations/utils/.vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -890,14 +890,14 @@
"/home/anna/work/notion/natalya/Export-fad9ecb4-a1a5-4623-920d-df32dd423743",
"-u",
"user1",
"-pw",
"-p",
"1234",
"-ws",
"-w",
"ws5",
"-ts",
"-t",
"notion"
],
// "args": ["src/__start.ts", "import-notion-with-teamspaces", "/home/anna/work/notion/natalya/Export-fad9ecb4-a1a5-4623-920d-df32dd423743", "-u", "user1", "-pw", "1234", "-ws", "ws1"],
// "args": ["src/__start.ts", "import-notion-with-teamspaces", "/home/anna/work/notion/natalya/Export-fad9ecb4-a1a5-4623-920d-df32dd423743", "-u", "user1", "-p", "1234", "-w", "ws1"],
"env": {
"FRONT_URL": "http://localhost:8087"
},
Expand All @@ -917,9 +917,9 @@
"/home/anna/work/clickup/aleksandr/debug/mentions.csv",
"-u",
"user1",
"-pw",
"-p",
"1234",
"-ws",
"-w",
"ws10"
],
"env": {
Expand All @@ -941,9 +941,9 @@
"/home/anna/huly/platform/dev/import-tool/docs/huly/example-workspace",
"-u",
"user1",
"-pw",
"-p",
"1234",
"-ws",
"-w",
"ws1"
],
"env": {
Expand Down
Loading