From f1ef8fc5e13cb6927fdfe48cde53af5c0b97aa24 Mon Sep 17 00:00:00 2001 From: guyhardonag Date: Thu, 12 Nov 2020 17:00:05 +0200 Subject: [PATCH 1/3] wrong name in drop type --- ddl/000009_export_current.down.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ddl/000009_export_current.down.sql b/ddl/000009_export_current.down.sql index 54be3f43a1f..b0712ddc8e6 100644 --- a/ddl/000009_export_current.down.sql +++ b/ddl/000009_export_current.down.sql @@ -1,6 +1,6 @@ BEGIN; DROP TABLE IF EXISTS catalog_branches_export_state; -DROP TYPE catalog_branches_export_status; +DROP TYPE If EXISTS catalog_branch_export_status; END; From 16d12e5923fb83fc0117499dfcdd584239c7597e Mon Sep 17 00:00:00 2001 From: guyhardonag Date: Thu, 12 Nov 2020 17:41:12 +0200 Subject: [PATCH 2/3] add documentation for export command change export command to be unhidden --- cmd/lakectl/cmd/export.go | 7 +++-- docs/reference/commands.md | 53 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 56 insertions(+), 4 deletions(-) diff --git a/cmd/lakectl/cmd/export.go b/cmd/lakectl/cmd/export.go index dc91fb9e80b..1464190d315 100644 --- a/cmd/lakectl/cmd/export.go +++ b/cmd/lakectl/cmd/export.go @@ -12,10 +12,9 @@ import ( ) var exportCmd = &cobra.Command{ - Use: "export", - Hidden: true, - Short: "create and manage continuous export", - Long: `Read set and update continuous export configurations and trigger exports`, + Use: "export", + Short: "create and manage continuous export", + Long: `Read set and update continuous export configurations and trigger exports`, } // exportGetCmd get continuous export configuration for branch diff --git a/docs/reference/commands.md b/docs/reference/commands.md index fe2a7ef01f9..264e65c598a 100644 --- a/docs/reference/commands.md +++ b/docs/reference/commands.md @@ -846,6 +846,59 @@ Global Flags: ```` +#### `lakectl export get ` +````text +get continuous export configuration for branch + +Usage: + lakectl export get [flags] + +Flags: + -h, --help help for get + +Global Flags: + -c, --config string config file (default is $HOME/.lakectl.yaml) + -f, --force without prompting for confirmation + --no-color don't use fancy output colors (default when not attached to an interactive terminal) + +```` + +#### `lakectl export set ` +````text +set continuous export configuration for branch + +Usage: + lakectl export set [flags] + +Flags: + -h, --help help for set + --path string export objects to this path + --prefix-regex stringArray list of regexps of keys to exported last in each prefix (for signalling) + --status-path string write export status object to this path + +Global Flags: + -c, --config string config file (default is $HOME/.lakectl.yaml) + -f, --force without prompting for confirmation + --no-color don't use fancy output colors (default when not attached to an interactive terminal) + +```` + +#### `lakectl export run ` +````text +export requested branch now + +Usage: + lakectl export run [flags] + +Flags: + -h, --help help for run + +Global Flags: + -c, --config string config file (default is $HOME/.lakectl.yaml) + -f, --force without prompting for confirmation + --no-color don't use fancy output colors (default when not attached to an interactive terminal) + +```` ### lakeFS URI pattern Different CLI and UI operations use `lakefs://` URIs. From c3fd5014b627acfd9d2d7473a10048eb6171a4e8 Mon Sep 17 00:00:00 2001 From: guy-har <60321938+guy-har@users.noreply.github.com> Date: Thu, 12 Nov 2020 18:03:53 +0200 Subject: [PATCH 3/3] Update ddl/000009_export_current.down.sql Co-authored-by: arielshaqed --- ddl/000009_export_current.down.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ddl/000009_export_current.down.sql b/ddl/000009_export_current.down.sql index b0712ddc8e6..897591c4440 100644 --- a/ddl/000009_export_current.down.sql +++ b/ddl/000009_export_current.down.sql @@ -1,6 +1,6 @@ BEGIN; DROP TABLE IF EXISTS catalog_branches_export_state; -DROP TYPE If EXISTS catalog_branch_export_status; +DROP TYPE IF EXISTS catalog_branch_export_status; END;