<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: nasa</title>
    <description>The latest articles on DEV Community by nasa (@nasa).</description>
    <link>https://dev.to/nasa</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F64004%2Fd53c94b3-a6d5-49f3-aabc-d2b4b3762cba.jpeg</url>
      <title>DEV Community: nasa</title>
      <link>https://dev.to/nasa</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/nasa"/>
    <language>en</language>
    <item>
      <title>Tool to release self-made package to Github at high speed</title>
      <dc:creator>nasa</dc:creator>
      <pubDate>Sat, 23 Nov 2019 14:06:13 +0000</pubDate>
      <link>https://dev.to/nasa/tool-to-release-self-made-package-to-github-at-high-speed-5h09</link>
      <guid>https://dev.to/nasa/tool-to-release-self-made-package-to-github-at-high-speed-5h09</guid>
      <description>&lt;p&gt;&lt;a href="https://github.com/k-nasa/rgh"&gt;https://github.com/k-nasa/rgh&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Using &lt;a href="https://github.com/k-nasa/rgh"&gt;rgh&lt;/a&gt;, You can release self-made package easily and fastly to github.&lt;/p&gt;

&lt;h2&gt;
  
  
  Demo
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://raw.githubusercontent.com/k-nasa/rgh/master/assets/demo.gif"&gt;https://raw.githubusercontent.com/k-nasa/rgh/master/assets/demo.gif&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In the demo, a release is created with the v0.1.0 tag, and three files under &lt;code&gt;/dist&lt;/code&gt; are uploaded in parallel&lt;/p&gt;

&lt;h2&gt;
  
  
  Usage
&lt;/h2&gt;

&lt;p&gt;The repository is obtained from the local &lt;code&gt;.git&lt;/code&gt; directory, and GitHub token reads the environment variable &lt;code&gt;GITHUB_TOKEN&lt;/code&gt;.&lt;br&gt;
It is also possible to pass it as an option instead of an environment variable.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;OPTIONS:
        --commit &amp;lt;target-commitish&amp;gt;    Specifies the commitish value that determines where the Git tag is created from.
                                       Can be any branch or commit SHA. Unused if the Git tag already exists. Default:
                                       the repository's default branch (usually master).
    -t, --token &amp;lt;token&amp;gt;                Set Github API Token (By default reads the GITHUB_TOKEN environment variable)
        --title &amp;lt;name&amp;gt;                 The title of the release
    -b, --body &amp;lt;body&amp;gt;                  Text describing the contents of the tag.
        --draft &amp;lt;draft&amp;gt;                 [possible values: true, false]
        --prerelease &amp;lt;prerelease&amp;gt;       [possible values: true, false]

ARGS:
    &amp;lt;tag&amp;gt;         tag
    &amp;lt;packages&amp;gt;    upload packages dir or file
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;h2&gt;
  
  
  Installation
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Pre-compiled executables
&lt;/h3&gt;

&lt;p&gt;Get them &lt;a href="https://github.com/k-nasa/rgh/releases"&gt;here&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  using homebrew
&lt;/h3&gt;



&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;brew install k-nasa/tap/rgh
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;h3&gt;
  
  
  using cargo
&lt;/h3&gt;

&lt;p&gt;Currently it cannot be built with the stable version.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;cargo +beta install rgh
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;p&gt;I plan to add options while maintaining a simple interface.&lt;/p&gt;

&lt;p&gt;I would be happy if you commented on the features I wanted.&lt;/p&gt;

</description>
      <category>showdev</category>
      <category>rust</category>
      <category>cli</category>
    </item>
    <item>
      <title>Developed a test framework for Rust (Try use it)</title>
      <dc:creator>nasa</dc:creator>
      <pubDate>Tue, 12 Mar 2019 04:18:48 +0000</pubDate>
      <link>https://dev.to/nasa/developed-a-test-framework-for-rust-try-use-it-3kcj</link>
      <guid>https://dev.to/nasa/developed-a-test-framework-for-rust-try-use-it-3kcj</guid>
      <description>&lt;p&gt;Hi. I'm nasa.&lt;/p&gt;

&lt;p&gt;I made a test framework Ruspec by Rust.&lt;br&gt;
Please use it.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/k-nasa/ruspec"&gt;https://github.com/k-nasa/ruspec&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;
  
  
  Example syntax
&lt;/h2&gt;

&lt;p&gt;This is functional macro. It's expanded to has test attribute code.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight rust"&gt;&lt;code&gt;&lt;span class="k"&gt;use&lt;/span&gt; &lt;span class="nn"&gt;ruspec&lt;/span&gt;&lt;span class="p"&gt;::&lt;/span&gt;&lt;span class="n"&gt;ruspec&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="nd"&gt;ruspec!&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="n"&gt;describe&lt;/span&gt; &lt;span class="s"&gt;"test module name"&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="n"&gt;before&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="k"&gt;let&lt;/span&gt; &lt;span class="n"&gt;context&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
        &lt;span class="n"&gt;subject&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;context&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="mi"&gt;5&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;

        &lt;span class="n"&gt;it&lt;/span&gt; &lt;span class="s"&gt;"test name"&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
            &lt;span class="nd"&gt;assert_eq!&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;subject&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
        &lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;

    &lt;span class="n"&gt;describe&lt;/span&gt; &lt;span class="s"&gt;"test module 2"&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="n"&gt;before&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="k"&gt;let&lt;/span&gt; &lt;span class="n"&gt;context&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
        &lt;span class="n"&gt;it&lt;/span&gt; &lt;span class="s"&gt;"test name"&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
            &lt;span class="nd"&gt;assert_eq!&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;context&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
        &lt;span class="p"&gt;}&lt;/span&gt;

        &lt;span class="n"&gt;context&lt;/span&gt; &lt;span class="s"&gt;"context is 6"&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
            &lt;span class="n"&gt;before&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="k"&gt;let&lt;/span&gt; &lt;span class="n"&gt;context&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;6&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
            &lt;span class="n"&gt;it&lt;/span&gt; &lt;span class="s"&gt;"should equal 6"&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
                &lt;span class="nd"&gt;assert_eq!&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;context&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;6&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
            &lt;span class="p"&gt;}&lt;/span&gt;
        &lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;h1&gt;
  
  
  Expand
&lt;/h1&gt;



&lt;div class="highlight"&gt;&lt;pre class="highlight rust"&gt;&lt;code&gt;&lt;span class="k"&gt;mod&lt;/span&gt; &lt;span class="n"&gt;test_module_name&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nd"&gt;#[test]&lt;/span&gt;
    &lt;span class="k"&gt;fn&lt;/span&gt; &lt;span class="nf"&gt;test_name&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="k"&gt;let&lt;/span&gt; &lt;span class="n"&gt;context&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

        &lt;span class="nf"&gt;assert_eq&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;context&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="k"&gt;mod&lt;/span&gt; &lt;span class="n"&gt;test_module_2&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nd"&gt;#[test]&lt;/span&gt;
    &lt;span class="k"&gt;fn&lt;/span&gt; &lt;span class="nf"&gt;test_name&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="k"&gt;let&lt;/span&gt; &lt;span class="n"&gt;context&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

        &lt;span class="nf"&gt;assert_eq&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;context&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;

    &lt;span class="k"&gt;mod&lt;/span&gt; &lt;span class="n"&gt;context_is_6&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="nd"&gt;#[test]&lt;/span&gt;
        &lt;span class="k"&gt;fn&lt;/span&gt; &lt;span class="nf"&gt;should_equal_6&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
            &lt;span class="k"&gt;let&lt;/span&gt; &lt;span class="n"&gt;context&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;6&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
            &lt;span class="nd"&gt;assert_eq!&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;context&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;6&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;h2&gt;
  
  
  how to use
&lt;/h2&gt;

&lt;p&gt;Add your Cargo.toml&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;ruspec = "0.1.1"
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;p&gt;import ruspec!&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;use ruspec::ruspec;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



</description>
      <category>rust</category>
      <category>showdev</category>
    </item>
    <item>
      <title>I made tool for taking notes fast on the command line.</title>
      <dc:creator>nasa</dc:creator>
      <pubDate>Sun, 21 Oct 2018 11:48:04 +0000</pubDate>
      <link>https://dev.to/nasa/i-made-tool-for-taking-notes-fast-on-the-command-line-10og</link>
      <guid>https://dev.to/nasa/i-made-tool-for-taking-notes-fast-on-the-command-line-10og</guid>
      <description>&lt;p&gt;Hello I'm nasa. I think that you can understand by looking at the title,I made a memo tool.&lt;/p&gt;

&lt;p&gt;I usually write notes on the command line. However, I noticed that management of memos is troublesome as it is.&lt;br&gt;
So I decided to create a tool that makes it easy to manage memos.&lt;/p&gt;

&lt;p&gt;The source code is here.&lt;br&gt;
&lt;a href="https://github.com/k-nasa/rmemo"&gt;https://github.com/k-nasa/rmemo&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://asciinema.org/a/F65yWTfdnMyNgiyFhLjGO3mRZ"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--3m1DqCpx--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://asciinema.org/a/F65yWTfdnMyNgiyFhLjGO3mRZ.png" alt="asciicast"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;
  
  
  Installation
&lt;/h2&gt;
&lt;h3&gt;
  
  
  On macOS
&lt;/h3&gt;

&lt;p&gt;In order to publish to the official of homebrew I have to collect 50 stars.(Give me star)&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;brew tap k-nasa/homebrew-rmemo
brew install rmemo
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;h3&gt;
  
  
  From source
&lt;/h3&gt;



&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;cargo install rmemo
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;h2&gt;
  
  
  Usage example
&lt;/h2&gt;

&lt;p&gt;Create new note&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$rmemo new
Title:
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;p&gt;If you have set up a template, create a note based on it&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$rmemo new -t
Title:
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;p&gt;Deletes the note of the file name matching the argument pattern&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;rmemo delete hoge
hoge
2018-10-15hoge.md
2018-10-12hoge.md
2018-10-08hoge.md
Will delete those entry. Are you sure?
Are you sure?(y/n) :
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;p&gt;If you want to write down ideas right now you can use quick command&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$rmemo quick idea
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;





&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$rmemo list
/Users/hoge/.config/rmemo/memos
│  hoge
│  └── hoge.md
│  test
│  └── test.md
├── 2018-10-16indicatif_memo.md
├── hgoehgoe.md
├── 2018-10-12iii.md
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;h2&gt;
  
  
  Configuration
&lt;/h2&gt;



&lt;div class="highlight"&gt;&lt;pre class="highlight toml"&gt;&lt;code&gt;&lt;span class="py"&gt;memos_dir&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="s"&gt;"/Users/asan/.config/rmemo/memos"&lt;/span&gt;  &lt;span class="c"&gt;# Directory where note is stored&lt;/span&gt;
&lt;span class="py"&gt;editor&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="s"&gt;"nvim"&lt;/span&gt;                                &lt;span class="c"&gt;# The editor you want to use. I recommend nvim for no particular reason&lt;/span&gt;
&lt;span class="py"&gt;selector&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="s"&gt;"fzf"&lt;/span&gt;                               &lt;span class="c"&gt;# Selector you want to use. Please choose your favorite one&lt;/span&gt;
&lt;span class="py"&gt;grep_command&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="s"&gt;"grep"&lt;/span&gt;                          &lt;span class="c"&gt;# Set your favorite grep&lt;/span&gt;
&lt;span class="py"&gt;template_file_path&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="s"&gt;""&lt;/span&gt;                        &lt;span class="c"&gt;# Set the template you want to use&lt;/span&gt;
&lt;span class="py"&gt;enter_time_in_filename&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;                  &lt;span class="c"&gt;# Set it to false if timestamp is not required for file name&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



</description>
      <category>showdev</category>
      <category>rust</category>
    </item>
  </channel>
</rss>
