-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit changes the command structure from "zed" to "super". The zq command is now "super query" and the zed command is now "super db". "super query" no longer attempts to differentiate a single argument file from a single argument query and instead has a flag "-c" for specifying the query text. "super db query" does not have a "-c" flag since there are no command-line file args. The ZED_LAKE environement is now SUPER_DB_LAKE. There is still work to transition from zed terminology both in the source code as well as documentation but here we are getting all of the automated and docs tests passing. We will rename the file formats in a subsequent PR. Some of us will miss typing zq in place of "super query" but shell aliases are your friend, e.g., sup='super query'
- Loading branch information
Showing
572 changed files
with
2,765 additions
and
2,701 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
package db | ||
|
||
import ( | ||
"flag" | ||
|
||
"github.com/brimdata/super/cli/lakeflags" | ||
"github.com/brimdata/super/cmd/super/root" | ||
"github.com/brimdata/super/pkg/charm" | ||
) | ||
|
||
var Spec = &charm.Spec{ | ||
Name: "db", | ||
Usage: "db <sub-command> [options] [arguments...]", | ||
Short: "run SuperDB data lake commands", | ||
Long: ` | ||
XXX db is a command-line tool for creating, configuring, ingesting into, | ||
querying, and orchestrating Zed data lakes.`, | ||
New: New, | ||
} | ||
|
||
func init() { | ||
root.Super.Add(Spec) | ||
} | ||
|
||
type Command struct { | ||
*root.Command | ||
LakeFlags lakeflags.Flags | ||
} | ||
|
||
func New(parent charm.Command, f *flag.FlagSet) (charm.Command, error) { | ||
c := &Command{Command: parent.(*root.Command)} | ||
c.LakeFlags.SetFlags(f) | ||
return c, nil | ||
} | ||
|
||
func (c *Command) Run(args []string) error { | ||
//XXX | ||
_, cancel, err := c.Init() | ||
if err != nil { | ||
return err | ||
} | ||
defer cancel() | ||
if len(args) == 0 { | ||
return charm.NeedHelp | ||
} | ||
return charm.ErrNoRun | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.