Update structs to allow uploading files
This commit is contained in:
parent
65860664b6
commit
a16b7c1720
13
cmd/root.go
13
cmd/root.go
|
@ -16,20 +16,9 @@ var cfgFile string
|
|||
// rootCmd represents the base command when called without any subcommands
|
||||
var rootCmd = &cobra.Command{
|
||||
Use: "tiamat",
|
||||
Short: "A brief description of your application",
|
||||
Long: `A longer description that spans multiple lines and likely contains
|
||||
examples and usage of using your application. For example:
|
||||
|
||||
Cobra is a CLI library for Go that empowers applications.
|
||||
This application is a tool to generate the needed files
|
||||
to quickly create a Cobra application.`,
|
||||
// Uncomment the following line if your bare application
|
||||
// has an action associated with it:
|
||||
// Run: func(cmd *cobra.Command, args []string) { },
|
||||
Short: "Command & Control server written in Go",
|
||||
}
|
||||
|
||||
// Execute adds all child commands to the root command and sets flags appropriately.
|
||||
// This is called by main.main(). It only needs to happen once to the rootCmd.
|
||||
func Execute() {
|
||||
err := rootCmd.Execute()
|
||||
if err != nil {
|
||||
|
|
|
@ -34,10 +34,10 @@ type Instructions struct {
|
|||
|
||||
IsKillswitch bool
|
||||
|
||||
// IsDownload bool
|
||||
// IsUpload bool
|
||||
// FileName string
|
||||
// FileContents []byte
|
||||
IsDownload bool
|
||||
IsUpload bool
|
||||
FileName string
|
||||
FileContents []byte
|
||||
|
||||
IsListFiles bool
|
||||
Path string
|
||||
|
@ -49,9 +49,10 @@ type Response struct {
|
|||
Successful bool
|
||||
Message string
|
||||
|
||||
// IsUpload bool
|
||||
// FileName string
|
||||
// FileContents []byte
|
||||
IsDownload bool
|
||||
IsUpload bool
|
||||
FileName string
|
||||
FileContents []byte
|
||||
|
||||
IsListFiles bool
|
||||
FileList
|
||||
|
|
Loading…
Reference in New Issue