Skip to content

Commit

Permalink
use exact args
Browse files Browse the repository at this point in the history
  • Loading branch information
weikanglim committed Nov 10, 2023
1 parent 23e937b commit 448660f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cmd/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ func NewBuildCommand() *cobra.Command {
var buildCmd = &cobra.Command{
Use: "build <directory>",
Short: "Builds stored Kusto functions and tables into command scripts suitable for deployment.",
Args: cobra.MaximumNArgs(1),
Args: cobra.ExactArgs(1),
Long: heredoc.Doc(`
Build transpiles all Kusto declarative file declarations under the current directory,
into command scripts under the 'kout' directory relative to the current directory.
Expand Down
2 changes: 1 addition & 1 deletion cmd/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ func NewRunCmd() *cobra.Command {
var runCmd = &cobra.Command{
Use: "run <file>",
Short: "Runs a script file.",
Args: cobra.MaximumNArgs(1),
Args: cobra.ExactArgs(1),
Long: heredoc.Doc(`
Run executes the script file against a Kusto database.
`),
Expand Down
2 changes: 1 addition & 1 deletion cmd/sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ func NewSyncCommand() *cobra.Command {
var syncCmd = &cobra.Command{
Use: "sync <directory>",
Short: "Syncs Kusto function and table declarations to a targeted Azure Data Explorer database",
Args: cobra.MaximumNArgs(1),
Args: cobra.ExactArgs(1),
Long: heredoc.Doc(`
sync will automatically call 'ksd build' to ensure that all files are built into command scripts.
To skip this behavior, pass the '--from-out' flag specifying the output directory that is already built.
Expand Down

0 comments on commit 448660f

Please sign in to comment.