You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
378 B
Ruby

#!/usr/bin/env ruby
# frozen_string_literal: true
# SPDX-License-Identifier: MIT
#
# Copyright (c) 2018-2019 Andre Richter <andre.o.richter@gmail.com>
require 'fileutils'
def tutorial_folders
crates = Dir['**/Cargo.toml']
crates.delete_if do |x|
!/[0-9][0-9]/.match?(x[0..1])
end
crates.sort!
end
puts tutorial_folders if $PROGRAM_NAME == __FILE__