addalluserstocommunity

package
v0.0.0-...-3d46182 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 27, 2024 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Command = &cli.Command{
	Name:  "add-all-users-to-community",
	Usage: "Add all users to community",
	Action: func(ctx *cli.Context) error {
		db := ctx.Context.Value("db").(*sql.DB)
		communityName := ctx.Args().First()
		if err := core.AddAllUsersToCommunity(ctx.Context, db, communityName); err != nil {
			return fmt.Errorf("failed to add all users to %s: %w", communityName, err)
		}
		log.Printf("All users added to %s\n", communityName)
		return nil
	},
}

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL