Skip to content

Commit

Permalink
small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
kutluhanmetin committed Aug 16, 2023
1 parent 1e534f9 commit 5c3ca8a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions base/commands/demo/demo_map_set_many.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ func (m MapSetManyCmd) Init(cc plug.InitContext) error {
cc.SetCommandUsage("map-setmany [entry-count] [flags]")
cc.SetPositionalArgCount(1, 1)
cc.AddStringFlag(flagName, "n", "default", false, "Name of the map.")
cc.AddStringFlag(flagSize, "", "", true, `Maybe an integer which is number of bytes, or one of the following:
cc.AddStringFlag(flagSize, "", "1", false, `Maybe an integer which is number of bytes, or one of the following:
Xkb: kilobytes
Xmb: megabytes
`)
Expand All @@ -51,7 +51,7 @@ func (m MapSetManyCmd) Exec(ctx context.Context, ec plug.ExecContext) error {
return err
}
_, stop, err := ec.ExecuteBlocking(ctx, func(ctx context.Context, sp clc.Spinner) (any, error) {
sp.SetText(fmt.Sprintf("Creating map %s with %d entries", mapName, c))
sp.SetText(fmt.Sprintf("Creating entries in map %s with %d entries", mapName, c))
mm, err := ci.Client().GetMap(ctx, mapName)
if err != nil {
return nil, err
Expand Down

0 comments on commit 5c3ca8a

Please sign in to comment.