-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build(deps): use github.com/sylabs/sif/v2
- Loading branch information
Adam Hughes
committed
Aug 13, 2021
1 parent
e6988a2
commit 5e132fc
Showing
20 changed files
with
366 additions
and
490 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,29 @@ | ||
// Copyright (c) 2019, Sylabs Inc. All rights reserved. | ||
// Copyright (c) 2019-2021, Sylabs Inc. All rights reserved. | ||
// This software is licensed under a 3-clause BSD license. Please consult the | ||
// LICENSE.md file distributed with the sources of this project regarding your | ||
// rights to use or distribute this software. | ||
|
||
package cli | ||
|
||
import ( | ||
"github.com/sylabs/sif/pkg/siftool" | ||
"github.com/spf13/cobra" | ||
"github.com/sylabs/sif/v2/pkg/siftool" | ||
"github.com/sylabs/singularity/docs" | ||
"github.com/sylabs/singularity/pkg/cmdline" | ||
) | ||
|
||
// SiftoolCmd is easily set since the sif repo allows the cobra.Command struct to be | ||
// easily accessed with Siftool(), we do not need to do anything but call that function. | ||
var SiftoolCmd = siftool.Siftool() | ||
|
||
func init() { | ||
addCmdInit(func(cmdManager *cmdline.CommandManager) { | ||
cmdManager.RegisterCmd(SiftoolCmd) | ||
cmd := &cobra.Command{ | ||
Use: docs.SIFUse, | ||
Aliases: []string{docs.SIFAlias}, | ||
Short: docs.SIFShort, | ||
Long: docs.SIFLong, | ||
Example: docs.SIFExample, | ||
DisableFlagsInUseLine: true, | ||
} | ||
siftool.AddCommands(cmd) | ||
|
||
cmdManager.RegisterCmd(cmd) | ||
}) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.