mirror of
				https://github.com/NVIDIA/nvidia-container-toolkit
				synced 2025-06-26 18:18:24 +00:00 
			
		
		
		
	Use singular instead of plural for hook arguments
Signed-off-by: Evan Lezar <elezar@nvidia.com>
This commit is contained in:
		
							parent
							
								
									e93bafa6d4
								
							
						
					
					
						commit
						ef6f48e9f7
					
				| @ -66,9 +66,8 @@ func (m command) build() *cli.Command { | |||||||
| 			Destination: &cfg.hostRoot, | 			Destination: &cfg.hostRoot, | ||||||
| 		}, | 		}, | ||||||
| 		&cli.StringSliceFlag{ | 		&cli.StringSliceFlag{ | ||||||
| 			Name:        "csv-filenames", | 			Name:        "csv-filename", | ||||||
| 			Aliases:     []string{"f"}, | 			Usage:       "Specify a (CSV) filename to process", | ||||||
| 			Usage:       "Specify the (CSV) filenames to process", |  | ||||||
| 			Destination: &cfg.filenames, | 			Destination: &cfg.filenames, | ||||||
| 		}, | 		}, | ||||||
| 		&cli.StringFlag{ | 		&cli.StringFlag{ | ||||||
|  | |||||||
| @ -59,8 +59,8 @@ func (m command) build() *cli.Command { | |||||||
| 
 | 
 | ||||||
| 	c.Flags = []cli.Flag{ | 	c.Flags = []cli.Flag{ | ||||||
| 		&cli.StringSliceFlag{ | 		&cli.StringSliceFlag{ | ||||||
| 			Name:        "folders", | 			Name:        "folder", | ||||||
| 			Usage:       "Specifiy the additional folders to add to /etc/ld.so.conf before updating the ld cache", | 			Usage:       "Specifiy a folder to add to /etc/ld.so.conf before updating the ld cache", | ||||||
| 			Destination: &cfg.folders, | 			Destination: &cfg.folders, | ||||||
| 		}, | 		}, | ||||||
| 		&cli.StringFlag{ | 		&cli.StringFlag{ | ||||||
|  | |||||||
| @ -74,7 +74,7 @@ func (d ldconfig) Hooks() ([]Hook, error) { | |||||||
| 
 | 
 | ||||||
| 	args := []string{hookPath, "hook", "update-ldcache"} | 	args := []string{hookPath, "hook", "update-ldcache"} | ||||||
| 	for _, f := range libDirs { | 	for _, f := range libDirs { | ||||||
| 		args = append(args, "--folders", f) | 		args = append(args, "--folder", f) | ||||||
| 	} | 	} | ||||||
| 	h := Hook{ | 	h := Hook{ | ||||||
| 		Lifecycle: cdi.CreateContainerHook, | 		Lifecycle: cdi.CreateContainerHook, | ||||||
|  | |||||||
| @ -58,7 +58,7 @@ func (d symlinks) Hooks() ([]Hook, error) { | |||||||
| 
 | 
 | ||||||
| 	args := []string{hookPath, "hook", "create-symlinks"} | 	args := []string{hookPath, "hook", "create-symlinks"} | ||||||
| 	for _, f := range d.csvFiles { | 	for _, f := range d.csvFiles { | ||||||
| 		args = append(args, "--csv-filenames", f) | 		args = append(args, "--csv-filename", f) | ||||||
| 	} | 	} | ||||||
| 
 | 
 | ||||||
| 	h := Hook{ | 	h := Hook{ | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user