Update structs to allow uploading files

This commit is contained in:
raul 2024-06-18 09:45:03 +02:00
parent 65860664b6
commit a16b7c1720
2 changed files with 9 additions and 19 deletions

View File

@ -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 {

View File

@ -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