Initialize before completion
This commit calls the initialization function before the
completion methods as well.
Fixes
@@ -25,6 +25,7 @@ func bashEscape(s string) string {
// Complete prints a list of all password names to os.Stdout
func (s *Action) Complete(ctx context.Context, c *cli.Context) {
+ s.Store.Initialized(ctx) // important to make sure the structs are not nil
list, err := s.Store.List(ctx, 0)
if err != nil {
return
