Add command usage in CLI

Add Long description for missing commands along with practical examples
This commit is contained in:
Ettore Di Giacinto
2020-12-02 23:15:23 +01:00
parent 034fb54c25
commit c8bcd88f1f
7 changed files with 94 additions and 9 deletions

View File

@@ -35,8 +35,12 @@ var reclaimCmd = &cobra.Command{
LuetCfg.Viper.BindPFlag("system.rootfs", cmd.Flags().Lookup("system-target"))
LuetCfg.Viper.BindPFlag("force", cmd.Flags().Lookup("force"))
},
Long: `Add packages to the systemdb if files belonging to packages
in available repositories exists in the target root.`,
Long: `Reclaim tries to find association between packages in the online repositories and the system one.
$ luet reclaim
It scans the target file system, and if finds a match with a package available in the repositories, it marks as installed in the system database.
`,
Run: func(cmd *cobra.Command, args []string) {
var systemDB pkg.PackageDatabase