forked from Plemya-x/ALR
		
	adds a rootCmd call if necessary
This commit is contained in:
		| @@ -39,6 +39,7 @@ type ALRConfig struct { | ||||
|  | ||||
| var defaultConfig = &types.Config{ | ||||
| 	RootCmd:          "sudo", | ||||
| 	UseRootCmd:       true, | ||||
| 	PagerStyle:       "native", | ||||
| 	IgnorePkgUpdates: []string{}, | ||||
| 	AutoPull:         true, | ||||
| @@ -142,6 +143,10 @@ func (c *ALRConfig) LogLevel() string { | ||||
| 	return c.cfg.LogLevel | ||||
| } | ||||
|  | ||||
| func (c *ALRConfig) UseRootCmd() bool { | ||||
| 	return c.cfg.UseRootCmd | ||||
| } | ||||
|  | ||||
| func (c *ALRConfig) GetPaths() *Paths { | ||||
| 	return c.paths | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user