robertdfrench / git-pr

Pull requests without Git(Hub|Lab)
GNU General Public License v3.0
0 stars 1 forks source link

Use the type system to distinguish output from git #51

Open robertdfrench opened 3 years ago

robertdfrench commented 3 years ago

We have a lot of functions that accept strings as input, but they expect those strings to have certain internal structure. We could take advantage of the type system, and return/accept something like:

struct GitBranchDashA {
    content: String
}