Skip to content

Helper ideas #8

Description

@llamicron

Here's a list of ideas for helper functions/modules. These are designed to help people write criteria, especially people who aren't very familiar with rust. Even if it just saves a few lines of code, it might be worth it. For example, there's a file_exists helper, even though you can check that in a couple of lines with a PathBuf. I'm expecting people who just got introduced to rust to use it (if anyone uses it lmao)

CLI

  • CLI Command runner - run a command and handle the platform specifics, return stdout and stderr and all that fancy stuff. Basically just do Command::new() and handle the platform differences
  • Confirmation - pause the thread and ask for confirmation before continuing. Also add y/n confirmation.

System

  • Program installed - add a check to see if a program is installed
  • Get program version - This is now the Program enum and Version struct under the system helpers module

Web

  • Post arbitrary data - currently the only post helper can only send something that can be deserialized into json. Maybe add a separate method where you can post any string data
  • Get IP - Get the public IP of the system, if there is one.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions